re PR c++/78647 (ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error...
authorMarek Polacek <polacek@redhat.com>
Mon, 12 Dec 2016 17:58:00 +0000 (17:58 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 12 Dec 2016 17:58:00 +0000 (17:58 +0000)
commitfe366b87159c5ac790045b3e578993d5be6bbdfb
treeb38c7e9bc35635ec7eed5caa8f698ea31fe7d34b
parent470a60b2c4fa561455faece02379c6b34872c58a
re PR c++/78647 (ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: tree check: expected tree_list, have error_mark in get_attribute_name, at attribs.c:664))

PR c++/78647
* c-common.c (attribute_fallthrough_p): Return false for
error_mark_node.

* g++.dg/parse/error58.C: New.

From-SVN: r243575
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error58.C [new file with mode: 0644]