Debian Codegraph @

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

raw
1 // { dg-do compile }
2
3 // Origin: Ivan Godard <[email protected]>
4 // Volker Reichelt <[email protected]>
5
6 // PR c++/13797: ICE invalid nontype template parameter
7
8 template <int> struct A
9 {
10 typedef A<0> B; // { dg-message "previous declaration" }
11 template <B> struct B {}; // { dg-error "class type|incomplete|typedef" }
12 };
13
14 A<0> a;