+2014-04-11 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58600
+ * name-lookup.c (parse_using_directive): Return early if the
+ attribs argument is error_mark_node; use get_attribute_name.
+
2014-04-11 Jason Merrill <jason@redhat.com>
DR 1030
void
parse_using_directive (tree name_space, tree attribs)
{
- tree a;
-
do_using_directive (name_space);
- for (a = attribs; a; a = TREE_CHAIN (a))
+ if (attribs == error_mark_node)
+ return;
+
+ for (tree a = attribs; a; a = TREE_CHAIN (a))
{
- tree name = TREE_PURPOSE (a);
+ tree name = get_attribute_name (a);
if (is_attribute_p ("strong", name))
{
if (!toplevel_bindings_p ())
+2014-04-11 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58600
+ * g++.dg/cpp0x/gen-attrs-58.C: New.
+ * g++.dg/cpp0x/gen-attrs-59.C: Likewise.
+
2014-04-11 Steve Ellcey <sellcey@mips.com>
Jakub Jelinek <jakub@redhat.com>
--- /dev/null
+// PR c++/58600
+// { dg-do compile { target c++11 } }
+
+namespace N { int i; }
+using namespace N alignas(int); // { dg-warning "ignored" }
--- /dev/null
+// PR c++/58600
+// { dg-do compile { target c++11 } }
+
+namespace N {}
+using namespace N alignas(X); // { dg-error "declared" }