annotate gcc/testsuite/g++.dg/template/init7.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR c++/31517. This used to ICE. */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 template<typename> struct A
kono
parents:
diff changeset
5 {
kono
parents:
diff changeset
6 static const int i=0;
kono
parents:
diff changeset
7 };
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 template<typename T> const int A<T>::i = 0=0; /* { dg-error "duplicate initialization" } */