https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88144
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.org --- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > I think one of the reasons why it has not been removed is there is still > code out there that uses this syntax. > If anything we should add a warning about it first if we are going to remove > it. There's a warning from -Wpedantic at least: $ /usr/local/bin/gcc -c -Wall -Wextra -pedantic 88144.c 88144.c:2:21: warning: obsolete use of designated initializer with ':' [-Wpedantic] 2 | struct point p = { x: 69, y: 42 }; | ^ 88144.c:2:28: warning: obsolete use of designated initializer with ':' [-Wpedantic] 2 | struct point p = { x: 69, y: 42 }; | ^ $ But maybe it should be moved to a different flag that's also enabled by -Wextra or -Wall or maybe even by default, too, besides just -Wpedantic, though. And also have a fix-it hint added to use the new (standard) syntax.