https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104213
Bug ID: 104213 Summary: bogus use-after-free in virtual dtor with -ffat-lto-objects on ARM Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dtardon at redhat dot com Target Milestone: --- Created attachment 52281 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52281&action=edit reproducer.cpp g++ 12 emits a bogus use-after-free warning on any virtual dtor on ARM if -ffat-lto-objects is used. See the attached minimal reproducer.