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++/70202] ICE on invalid code on x86_64-linux-gnu in build_simple_base_path, at cp/class.c:579


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

--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Jun 15 15:23:40 2016
New Revision: 237482

URL: https://gcc.gnu.org/viewcvs?rev=237482&root=gcc&view=rev
Log:
/cp
2016-06-15  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/70202
        * decl.c (xref_basetypes): Revert r117839 changes; add fix-up
        code at the end of the for loop; also revert r159637 changes,
        add back the gcc_assert.
        * cp-tree.h (xref_basetypes): Adjust declaration.
        * parser.c (cp_parser_class_head): Adjust xref_basetypes call.

/testsuite
2016-06-15  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/70202
        * g++.dg/inherit/crash6.C: New.
        * g++.dg/inherit/union2.C: Likewise.
        * g++.dg/inherit/virtual12.C: Likewise.
        * g++.dg/inherit/virtual13.C: Likewise.
        * g++.dg/inherit/virtual1.C: Tweak dg-* tests.

Added:
    trunk/gcc/testsuite/g++.dg/inherit/crash6.C
    trunk/gcc/testsuite/g++.dg/inherit/union2.C
    trunk/gcc/testsuite/g++.dg/inherit/virtual12.C
    trunk/gcc/testsuite/g++.dg/inherit/virtual13.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/inherit/virtual1.C

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