OSDN Git Service

2014-02-26 Fabien Chene <fabien@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / explicit-args3.C
1 // PR c++/37177
2
3 template <class T>
4 struct A { };
5
6 template <class T>
7 void operator+(T, T);           // { dg-error "class or enum" }
8
9 int main()
10 {
11   operator+<int>;               // { dg-error "cannot resolve" }
12 }