re PR c++/60218 ([c++11] ICE using __bases for broken class hierarchy)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 9 Dec 2015 16:59:26 +0000 (16:59 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 9 Dec 2015 16:59:26 +0000 (16:59 +0000)
commit2efc721885206a44fc19814a7b1ef3d83ba3d2ab
tree1797e8f161c9dce3cd34b2b73145e4676c4fe834
parent026d0d538b66652ab69d361abb5542821c09c9b8
re PR c++/60218 ([c++11] ICE using __bases for broken class hierarchy)

/cp
2015-12-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60218
* semantics.c (calculate_bases_helper): Don't call dfs_walk_all
when TYPE_BINFO (type) is null.
(calculate_bases): Handle gracefully a null vector->length ().

/testsuite
2015-12-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60218
* g++.dg/ext/bases2.C: New.

From-SVN: r231460
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/bases2.C [new file with mode: 0644]