3 // Origin: Ivan Godard <igodard@pacbell.net>
4 // Volker Reichelt <reichelt@gcc.gnu.org>
6 // PR c++/13797: ICE invalid nontype template parameter
8 template <int> struct A
10 typedef A<0> B; // { dg-error "previous declaration" }
11 template <B> struct B {}; // { dg-error "not a valid type|typedef" }