This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/85068] [6/7 Regression] ICE with invalid covariant return type hierarchy


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]