PR c++/17393
* decl.c (grokdeclarator): Robustify error-recovery on invalid
declarations.
PR c++/17393
* g++.dg/parse/error21.C: New test.
From-SVN: r88855
+2004-10-10 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/17393
+ * decl.c (grokdeclarator): Robustify error-recovery on invalid
+ declarations.
+
2004-10-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
Convert diagnostics to use quoting flag q 7/n
&& ! bitfield)
{
error ("abstract declarator %qT used as declaration", type);
- unqualified_id = make_anon_name ();
+ return error_mark_node;
}
/* Only functions may be declared using an operator-function-id. */
+2004-10-10 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/17393
+ * g++.dg/parse/error21.C: New test.
+
2004-10-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
* g++.dg/overload/pmf1.C: Adjust quoting marks.
--- /dev/null
+// PR c++/17393
+// { dg-options "-Wall" }
+
+struct A { };
+
+void foo()
+{
+ // Check that we do not complain about an unused
+ // compiler-generated variable.
+ A& = a; // { dg-error "token|declarator|not declared" }
+}
+