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++/56534] [4.7 Regression] ICE Segfault on invalid code in check_elaborated_type_specifier


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56534

--- Comment #9 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2013-03-09 11:49:02 UTC ---
Author: paolo
Date: Sat Mar  9 11:48:53 2013
New Revision: 196573

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196573
Log:
/cp
2013-03-09  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/56534
    * parser.c (cp_parser_elaborated_type_specifier): Don't call
    check_elaborated_type_specifier when TREE_CODE (decl) != TYPE_DECL.
    * decl.c (check_elaborated_type_specifier): Tidy.

/testsuite
2013-03-09  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/56534
    * g++.dg/template/crash115.C: New.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/template/crash115.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/decl.c
    branches/gcc-4_7-branch/gcc/cp/parser.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


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