https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115185
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- <source>: In function 'main': <source>:8:57: warning: initializer-string for array of 'char' is too long for C++ [-Wc++-compat] 8 | static const char description[][5] = {[hello] = "hello"}; | ^~~~~~~ There is a patch floating around to add it as a different option besides just C++-compat too: https://gcc.gnu.org/pipermail/gcc-patches/2024-May/651664.html