2007-11-02 Paolo Carlini <pcarlini@suse.de>
PR c++/33495
* error.c (dump_expr): Deal specially with statements.
* g++.dg/other/error19.C: New.
From-SVN: r131268
2008-01-02 Volker Reichelt <reichelt@netcologne.de>
Backport:
+ 2007-11-02 Paolo Carlini <pcarlini@suse.de>
+
+ PR c++/33495
+ * error.c (dump_expr): Deal specially with statements.
+
2007-09-27 Paolo Carlini <pcarlini@suse.de>
PR c++/33493
if (t == 0)
return;
+ if (STATEMENT_CLASS_P (t))
+ {
+ pp_cxx_identifier (cxx_pp, "<statement>");
+ return;
+ }
+
switch (TREE_CODE (t))
{
case VAR_DECL:
2008-01-02 Volker Reichelt <reichelt@netcologne.de>
Backport:
+ 2007-11-02 Paolo Carlini <pcarlini@suse.de>
+
+ PR c++/33495
+ * g++.dg/other/error19.C: New.
+
2007-09-27 Paolo Carlini <pcarlini@suse.de>
PR c++/33493
--- /dev/null
+// PR c++/33495
+
+void foo()
+{
+ if (({while(true);})) // { dg-error "forbids|<statement>" }
+ ;
+}