summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash93.C
blob: 696a04a07866872fef9b04066169a39efed43b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/40371

struct A
{
  typedef void (&F)();
  template<int> operator F();
};

void foo()
{
  A()(); // { dg-error "no match" }
}