// { 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 "non-type" "non-type" } // { dg-message "if a type" "note" { target *-*-* } 15 } } template void func(void); // { dg-message "required from here" }