summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/local4.C
blob: 95d2990ec88d3aa9d827e5a48e1be2e8475fabe1 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/17413
// { dg-options -std=c++98 }

template <typename T> void foo() {} // { dg-message "note" }

int main () {
  struct S {};
  foo<S> (); // { dg-error "(match|template argument for|trying to instantiate)" } 
}