https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118817
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Known to fail| |14.2.1, 15.0 Target Milestone|--- |14.3 Ever confirmed|0 |1 Known to work| |13.3.0 Priority|P3 |P2 Status|UNCONFIRMED |NEW Summary|stringop-overflow and |[14/15 Regression] |array-bound error with |stringop-overflow and |LTO/O3 |array-bound error with | |LTO/O3 --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. -O3 -fPIC -flto -Wall -std=c++20 -shared is the relevant set of options to trigger this. IIRC this was triggered by standard library changes, there might be a bug reported for the underlying issue already.