aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash9.C
blob: 7a568fe054ad1b29ca5740d9c42d4e869b3593fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct A { };
struct B { };

A f(const B & b) {
  return A();
}

template<>
B f(const A & a) { // { dg-error "" }
  return B();
}