This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78647] [7 Regression] 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)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78647

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Dec 12 17:58:00 2016
New Revision: 243575

URL: https://gcc.gnu.org/viewcvs?rev=243575&root=gcc&view=rev
Log:
        PR c++/78647
        * c-common.c (attribute_fallthrough_p): Return false for
        error_mark_node.

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

Added:
    trunk/gcc/testsuite/g++.dg/parse/error58.C
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]