another expr/decl ambiguity test
authorBrendan Kehoe <brendan@gcc.gnu.org>
Tue, 18 Aug 1998 15:32:36 +0000 (11:32 -0400)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Tue, 18 Aug 1998 15:32:36 +0000 (11:32 -0400)
From-SVN: r21828

gcc/testsuite/g++.old-deja/g++.brendan/parse6.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C b/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C
new file mode 100644 (file)
index 0000000..5e27c58
--- /dev/null
@@ -0,0 +1,13 @@
+// Build don't link: 
+
+// this is marked as an expected error because it evidences an
+// ambiguity in the grammar between expressions and declarations.
+// when the parser's been cleaned up or rewritten, the error
+// marker can go away, since it'll no longer occur.
+
+class A { };
+
+main()  {
+  A a = a;
+  A b(b); // ERROR - 
+}