1 // { dg-do compile }
2
3 // Origin: Volker Reichelt <reichelt@gcc.gnu.org>
4
5 // PR c++/18471: ICE redeclaration of typedef as class template
6
7 typedef int X; // { dg-message "previous" }
8 template<X> struct X {}; // { dg-error "typedef-name" }
9