blob: 41e3e22c0003b6d7682dfb5695db3768f155dbaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// { 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 "not a valid type|typedef" }
};
A<0> a;
|