https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 105646, which changed state.
Bug 105646 Summary: g++ does not raise "xxx may be used uninitialized" warning on dead code when optimizing https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105646 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED