1 // PR c++/17413 2 // { dg-options -std=c++98 } 3 foo()4 template <typename T> void foo() {} // { dg-message "note" } 5 main()6 int main () { 7 struct S {}; 8 foo<S> (); // { dg-error "(match|template argument for|trying to instantiate)" } 9 } 10