re PR c++/70202 (ICE on invalid code on x86_64-linux-gnu in build_simple_base_path...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 4 Jun 2016 07:10:58 +0000 (07:10 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 4 Jun 2016 07:10:58 +0000 (07:10 +0000)
commit909a11ad43c91acda1b74de1a81a67bf3dbe751d
tree37289a706dfdb57baeedcfe25a9a8a3bfb1970af
parentc389d3496ad217dbce58cc90c7cc7c7d31b40d81
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-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70202
* parser.c (cp_parser_class_head): When xref_basetypes fails and
emits an error do not zero the type.

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

PR c++/70202
* g++.dg/inherit/crash5.C: New.
* g++.dg/inherit/virtual1.C: Adjust.

From-SVN: r237089
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/crash5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/inherit/virtual1.C