https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94951
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 48456 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48456&action=edit gcc11-pr94951.patch Untested fix. It seems just wrong to call the c-family strict_aliasing_warning for dependent types, we shouldn't query alias sets of dependent types and do any decisions based on what that gives.