https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77363
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 #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 39513 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39513&action=edit gcc7-pr77363.patch Untested fix. I believe the bug is that Richard changed just gen_type_die_with_usage, but modified_type_die needs to be in sync in what that function does, otherwise it can't look it up or looks up something different.