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.