https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112347
--- Comment #16 from Martin Uecker <muecker at gwdg dot de> --- I agree that the C++ should have this warning as well, although it seems less important there. This would be an enhancement request for the C++ FE.