[Bug tree-optimization/122380] [15/16 regression] std::variant with std::vectors of differing types may lead to double frees since r15-5595
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 7 07:02:26 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122380
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There is a store after the std::move missing:
```
MEM[(struct _Vector_impl_data *)m_3(D) + 8B]._M_start = 0B;
MEM[(struct _Vector_impl_data *)m_3(D) + 8B]._M_end_of_storage = 0B;
```
I have not looked into why it is being removed though.
More information about the Gcc-bugs
mailing list