1 // PR c++/27572 2 // { dg-do compile } 3 4 template<typedef,int> struct A1; // { dg-error "10:typedef declaration" } 5 // { dg-error "no type|default argument" "" { target *-*-* } .-1 } 6 template<typedef x,int> struct A2; // { dg-error "10:typedef declaration" } 7 // { dg-error "type|default argument" "" { target *-*-* } .-1 } 8 template<typedef x[],int> struct A3; // { dg-error "typedef declaration|no type|expected" } 9 template<typedef int x, int> struct A4; // { dg-error "10:typedef declaration" } 10 // { dg-error "default argument" "" { target *-*-* } .-1 } 11