[Bug c++/104213] New: bogus use-after-free in virtual dtor with -ffat-lto-objects on ARM

dtardon at redhat dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 24 19:13:36 GMT 2022


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.


More information about the Gcc-bugs mailing list