summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash41.C
blob: 746dbbca8a1d47b45e837039f965ddc4c1f83fb6 (plain)
1
2
3
4
5
6
7
8
// PR c++/35327

struct A
{
  A(int)(); // { dg-error "declared" }
};

template<int> void foo(bool b, A a) { b ? a : 0; } // { dg-error "no match" }