Backported from mainline
2018-04-03 Jakub Jelinek <jakub@redhat.com>
PR c++/85140
* name-lookup.c (handle_namespace_attrs): Return early if attributes
is error_mark_node.
* g++.dg/cpp0x/gen-attrs-64.C: New test.
From-SVN: r262089
2018-06-25 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2018-04-03 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/85140
+ * name-lookup.c (handle_namespace_attrs): Return early if attributes
+ is error_mark_node.
+
2018-03-30 Jakub Jelinek <jakub@redhat.com>
PR c++/84791
tree d;
bool saw_vis = false;
+ if (attributes == error_mark_node)
+ return false;
+
for (d = attributes; d; d = TREE_CHAIN (d))
{
tree name = get_attribute_name (d);
2018-06-25 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2018-04-03 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/85140
+ * g++.dg/cpp0x/gen-attrs-64.C: New test.
+
2018-03-30 Jakub Jelinek <jakub@redhat.com>
PR c++/84791
--- /dev/null
+// PR c++/85140
+// { dg-do compile { target c++11 } }
+
+namespace N alignas() {} // { dg-error "expected" }