PR c++/50742
* decl.c (check_previous_goto_1): Handle using-decl.
From-SVN: r180160
+2011-10-18 Jason Merrill <jason@redhat.com>
+
+ PR c++/50742
+ * decl.c (check_previous_goto_1): Handle using-decl.
+
2011-10-18 Jason Merrill <jason@redhat.com>
PR c++/50500
tree new_decls, old_decls = (b == level ? names : NULL_TREE);
for (new_decls = b->names; new_decls != old_decls;
- new_decls = DECL_CHAIN (new_decls))
+ new_decls = (DECL_P (new_decls) ? DECL_CHAIN (new_decls)
+ : TREE_CHAIN (new_decls)))
{
int problem = decl_jump_unsafe (new_decls);
if (! problem)
2011-10-18 Jason Merrill <jason@redhat.com>
+ PR c++/50742
+ * g++.dg/lookup/using23.C: New.
+
PR c++/50500
* g++.dg/cpp0x/implicit12.C: New.
* g++.dg/cpp0x/defaulted20.C: Adjust.
--- /dev/null
+// PR c++/50742
+
+typedef int A;
+
+void f(int i)
+{
+ switch (i)
+ {
+ case 0:
+ using ::A;
+ default:;
+ }
+}