OSDN Git Service

PR c++/49855
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / meminit2.C
index 6abf2df..f6afa01 100644 (file)
@@ -7,15 +7,15 @@ template <typename K1> struct O {
 }; 
 
 template <typename T> 
-struct A : typename O<T>::template I<int> {   // { dg-error "keyword `typename' not allowed" }
-  A() :    typename O<T>::template I<int>()   // { dg-error "keyword `typename' not allowed" }
-  {};
+struct A : typename O<T>::template I<int> {   // { dg-error "keyword 'typename' not allowed" }
+  A() :    typename O<T>::template I<int>()   // { dg-error "keyword 'typename' not allowed" }
+  {}
 };
 
 template <typename T> 
 struct B : O<T>::template I<int> {
   B() :    O<T>::I<int>()   // { dg-error "used as template|it is a template" "" }
-  {};
+  {}
 };
 
 // { dg-bogus "end of input" "bogus token skipping in the parser" { xfail *-*-* } 17 }