OSDN Git Service

PR c++/29363
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / nontype6.C
index 298ce82..97b093a 100644 (file)
@@ -12,8 +12,8 @@ struct A
 template <class T>
 void func(void)
 {
-  (void)A<T>::type();   // { dg-error "if a type is meant" }
-// { dg-error "parsed as a non-type" "non-type" { target *-*-* } 15 }
+  (void)A<T>::type();   // { dg-error "non-type" "non-type" }
+// { dg-message "if a type" "note" { target *-*-* } 15 }
 }
 
-template void func<float>(void);    // { dg-error "instantiated from here" }
+template void func<float>(void);    // { dg-message "instantiated from here" }