Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / crash26.C
blobf1bc399a31da981a083d19449c2f292b8780c791
1 // { dg-do compile }
3 // Origin: Volker Reichelt <reichelt@gcc.gnu.org>
5 // PR c++/18471: ICE redeclaration of typedef as class template
7 typedef int X;                  // { dg-error "previous" }
8 template<X> struct X {};        // { dg-error "typedef-name" }