https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120498
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >Somehow I feel like GCC-in-C++ mode is wrong to reject it here It is not since C++ designated-initialising is not the same as C's.