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" }