summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash26.C
blob: f1bc399a31da981a083d19449c2f292b8780c791 (plain)
1
2
3
4
5
6
7
8
// { dg-do compile }

// Origin: Volker Reichelt <reichelt@gcc.gnu.org>

// PR c++/18471: ICE redeclaration of typedef as class template

typedef int X;			// { dg-error "previous" }
template<X> struct X {};	// { dg-error "typedef-name" }