re PR c++/85068 (ICE with invalid covariant return type hierarchy)
authorJakub Jelinek <jakub@redhat.com>
Tue, 27 Mar 2018 11:02:08 +0000 (13:02 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 27 Mar 2018 11:02:08 +0000 (13:02 +0200)
commit8a5a37c0318cd558a1dc0fd867eaee55dcc51842
treee500e3cb2dad91e10a0464127fd2621765401e9d
parent36a4fb13d88960c9950a2a68b05321422245658a
re PR c++/85068 (ICE with invalid covariant return type hierarchy)

PR c++/85068
* class.c (update_vtable_entry_for_fn): Don't ICE if base_binfo
is NULL.  Assert if thunk_binfo is NULL then errorcount is non-zero.

* g++.dg/inherit/covariant22.C: New test.

From-SVN: r258873
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/covariant22.C [new file with mode: 0644]