summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/operator9.C
blob: 35be778765a4eeece1497ce002c44e1aca54f2eb (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" "candidate note" { target *-*-* } 7 }
}