PR c++/78647
* c-common.c (attribute_fallthrough_p): Return false for
error_mark_node.
* g++.dg/parse/error58.C: New.
From-SVN: r243575
+2016-12-12 Marek Polacek <polacek@redhat.com>
+
+ PR c++/78647
+ * c-common.c (attribute_fallthrough_p): Return false for
+ error_mark_node.
+
2016-12-08 Martin Sebor <msebor@redhat.com>
PR c/78284
bool
attribute_fallthrough_p (tree attr)
{
+ if (attr == error_mark_node)
+ return false;
tree t = lookup_attribute ("fallthrough", attr);
if (t == NULL_TREE)
return false;
+2016-12-12 Marek Polacek <polacek@redhat.com>
+
+ PR c++/78647
+ * g++.dg/parse/error58.C: New.
+
2016-12-12 David Malcolm <dmalcolm@redhat.com>
PR preprocessor/78680
--- /dev/null
+// PR c++/78647
+// { dg-do compile { target c++11 } }
+// { dg-options "-w" }
+
+struct A;
+void foo ();
+void f() { alignas (foo (A)); } // { dg-error "expected" "" }