summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash61.C
blob: 1f70bcb89d813fa5d101a0012f4b5e58d645a632 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/29733

template<typename T> void foo()
{
  T t = 0; // { dg-error "function type" }
}

void bar()
{
  foo<int()>();
}