https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79979
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |mpolacek at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Given the UB you're invoking, all bets are off and the compiler is free to do
anything. I don't think we want to change anything here. Even -Warray-bounds
warns here.