re PR c++/70202 (ICE on invalid code on x86_64-linux-gnu in build_simple_base_path...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 15 Jun 2016 15:23:40 +0000 (15:23 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 15 Jun 2016 15:23:40 +0000 (15:23 +0000)
commitb8911cb870585c08881d3c424cb1e508e99b9ace
tree89a4417c638d49e00e1541ed152672f46de1394d
parent75dc52c674f0d70ae8cca6b0381270b3efd3a0fb
re PR c++/70202 (ICE on invalid code on x86_64-linux-gnu in build_simple_base_path, at cp/class.c:579)

/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.

From-SVN: r237482
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/crash6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/inherit/union2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/inherit/virtual1.C
gcc/testsuite/g++.dg/inherit/virtual12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/inherit/virtual13.C [new file with mode: 0644]