summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash15.C
blob: e0aad73c73e6ed5232dab9ff79401717bb13cf64 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/13310

struct A {};

template <typename> void foo()
{
    A a;
    a.foo<int>(); // { dg-error "" }
}