https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122380
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|libstdc++ |tree-optimization
Target|arm-unknown-linux-gnueabihf |x86_64
Last reconfirmed| |2026-02-02
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Summary|[15/16 regression] |[15/16 regression]
|std::variant with |std::variant with
|std::vectors of differing |std::vectors of differing
|types may lead to double |types may lead to double
|frees |frees since r15-5595
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I can reproduce the issue with the original testcase on x86_64 on the trunk.
`-O2` fails so does `-fno-ipa-modref -O2` So it is not a modref issue.
`-O2 -fno-ipa-icf` also fails.
r15-5595-g27778979c9a1e3