blob: 46eef0a9ac7cdb10dcaa61d6d0827024bef13d2d (
plain)
1
2
3
4
5
6
7
8
9
10
|
//PR c++/27670
template<operator+> void foo(); // { dg-error "before|non-function|template" }
void bar()
{
foo(); // { dg-error "no matching function" }
// { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 7 }
}
|