https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111261
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2023-09-01
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
We diagnose this at -O1 now but not -O0, -O2 or -O3. We rely on the late
uninit diagnostic pass here but that's faced with optimized code.
Interestingly an older version of libstdc++ warned at -O2 and -O3 as well.