2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/24582
* g++.dg/init/switch1.C: New test.
2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/24582
* decl.c (declare_local_label): Return 0 for variables
with error_mark_node as their types.
From-SVN: r106434
+2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR c++/24582
+ * decl.c (declare_local_label): Return 0 for variables
+ with error_mark_node as their types.
+
2005-11-02 Mark Mitchell <mark@codesourcery.com>
PR c++/22434
static int
decl_jump_unsafe (tree decl)
{
- if (TREE_CODE (decl) != VAR_DECL || TREE_STATIC (decl))
+ if (TREE_CODE (decl) != VAR_DECL || TREE_STATIC (decl)
+ || TREE_TYPE (decl) == error_mark_node)
return 0;
if (TYPE_NEEDS_CONSTRUCTING (TREE_TYPE (decl))
+2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR c++/24582
+ * g++.dg/init/switch1.C: New test.
+
2005-11-03 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/delay-slot-1.c: New test.
--- /dev/null
+int f(int c)
+{
+ switch (c)
+ {
+ case d: /* { dg-error "'d' was not declared" } */
+ int optBzip2 = true;
+ }
+}