summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash45.C
blob: 8696ab4bb3c722354c993370dee53f5319a2586b (plain)
1
2
3
4
5
6
7
// PR c++/37348
// { dg-do compile }

struct A
{
  template <class> int f (B);	// { dg-error "was not declared in this scope|cannot be a member template" }
};