]>
Commit | Line | Data |
---|---|---|
2620d095 KL |
1 | // { dg-do compile } |
2 | ||
3 | // Origin: Ivan Godard <igodard@pacbell.net> | |
4 | // Volker Reichelt <reichelt@gcc.gnu.org> | |
5 | ||
6 | // PR c++/13797: ICE invalid nontype template parameter | |
7 | ||
8 | template <int> struct A | |
9 | { | |
82daaf6d | 10 | typedef A<0> B; // { dg-message "previous declaration" } |
4be5c72c | 11 | template <B> struct B {}; // { dg-error "class type|incomplete|typedef" } |
2620d095 KL |
12 | }; |
13 | ||
461c6fce | 14 | A<0> a; |