Testcase for fixed PR c++/8982

Nathanael Nerode neroden@twcny.rr.com
Wed Jan 1 12:37:00 GMT 2003


Applied.

	* g++.dg/parse/operator1.C: New test.

Index: operator1.C
===================================================================
RCS file: operator1.C
diff -N operator1.C
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ operator1.C	1 Jan 2003 12:30:57 -0000
@@ -0,0 +1,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
+}
+



More information about the Gcc-patches mailing list