This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85068] [6/7 Regression] ICE with invalid covariant return type hierarchy
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 22 Jun 2018 21:00:03 +0000
- Subject: [Bug c++/85068] [6/7 Regression] ICE with invalid covariant return type hierarchy
- Auto-submitted: auto-generated
- References: <bug-85068-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85068
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 22 20:59:31 2018
New Revision: 261940
URL: https://gcc.gnu.org/viewcvs?rev=261940&root=gcc&view=rev
Log:
Backported from mainline
2018-03-27 Jakub Jelinek <jakub@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-7-branch/gcc/testsuite/g++.dg/inherit/covariant22.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/class.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog