https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85068
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Jun 25 17:39:55 2018 New Revision: 262086 URL: https://gcc.gnu.org/viewcvs?rev=262086&root=gcc&view=rev Log: Backported from mainline 2018-03-27 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/inherit/covariant22.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/class.c branches/gcc-6-branch/gcc/testsuite/ChangeLog