summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/operator1.C
blob: 3a534d182cd13e9e6be25e8018203806a41962af (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c++/8982 */
/* { dg-do compile } */
namespace foo {
  template<class X>
  int operator- (X x);
}
 
int main() {
  using foo::operator-;  // syntax error under gcc 3.2
}