// { dg-do compile } // Origin: // PR c++/13957: Improved error message for type in template (when non-type // is expected). template struct A { typedef int type; }; template void func(void) { (void)A::type(); // { dg-error "if a type is meant" } // { dg-error "parsed as a non-type" "non-type" { target *-*-* } 15 } } template void func(void); // { dg-error "instantiated from here" }