https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79176
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- To me this sounds like a mismatch between the middle-end type_with_linkage_p and the C++ FE no_linkage_check. Perhaps the former should call the latter using a langhook?