Debian Codegraph @

gcc/testsuite/g++.dg/template/init7.C

raw
1 /* PR c++/31517. This used to ICE. */
2 /* { dg-do compile } */
3
4 template<typename> struct A
5 {
6 static const int i=0;
7 };
8
9 template<typename T> const int A<T>::i = T()=0; /* { dg-error "duplicate initialization" } */