https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53215
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2017-08-19 CC| |egallager at gcc dot gnu.org Ever confirmed|0 |1 Severity|normal |enhancement --- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> --- Confirming (as an enhancement) that g++ prints no warnings for the example code. Dunno if it really could/should though...