OSDN Git Service

PR c++/45329
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / operator9.C
1 //PR c++/27670
2
3 template<operator+> void foo(); // { dg-error "before|non-function|template" }
4
5 void bar()
6 {
7   foo();                        // { dg-error "no matching function" }
8   // { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 7 }
9 }
10