blob: b0d07814df1799123f5aa9c89601c24de39b3a0a [file] [log] [blame]
// { dg-do compile }
// Origin: Ivan Godard <igodard@pacbell.net>
// Volker Reichelt <reichelt@gcc.gnu.org>
// PR c++/13797: ICE invalid nontype template parameter
template <int> struct A
{
typedef A<0> B; // { dg-message "previous declaration" }
template <B> struct B {}; // { dg-error "class type|incomplete|typedef" }
};
A<0> a;