OSDN Git Service

PR c++/18451
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / typedef5.C
index abd9ebb..04b8eac 100644 (file)
@@ -2,6 +2,6 @@
 // { dg-do compile }
 
 template<typedef,int>        struct A1; // { dg-error "no type|typedef declaration|default argument" }
-template<typedef x,int>      struct A2; // { dg-error "no type|typedef declaration|default argument" }
-template<typedef x[],int>    struct A3; // { dg-error "no type|typedef declaration|default argument" }
+template<typedef x,int>      struct A2; // { dg-error "type|typedef declaration|default argument" }
+template<typedef x[],int>    struct A3; // { dg-error "no type|typedef declaration|expected" }
 template<typedef int x, int> struct A4; // { dg-error "typedef declaration|default argument" }