[Bug c++/85146] ICE with __direct_bases for declared but not defined struct

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 3 07:47:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85146

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 43813
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43813&action=edit
gcc8-pr85146.patch

It isn't entirely clear to me if this is valid or not from N2965, if it is
valid, we can do something like this patch, if it is invalid, we should use
complete_type_or_else or similar.  __bases doesn't diagnose incomplete classes
either.


More information about the Gcc-bugs mailing list