aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/explicit-args3.C
blob: c095e6688fdcf764174bce40bfeaf71f8a794212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/37177

template <class T>
struct A { };

template <class T>
void operator+(T, T);		// { dg-error "class or enum" }

int main()
{
  operator+<int>;		// { dg-error "cannot resolve" }
}