https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70924
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-07-29
CC| |egallager at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Current gcc output:
$ /usr/local/bin/gcc -c -std=c11 -pedantic -Wall -Wextra -O3 70924.c
70924.c: In function ‘main’:
70924.c:3:49: warning: missing braces around initializer [-Wmissing-braces]
struct { int w; struct { int x, y; } ss; } s = { 1, .ss = 2, 3 };
^
{ }
70924.c: At top level:
70924.c:7:15: warning: missing braces around initializer [-Wmissing-braces]
int a[3][1] = { { 0 }, { 1 }, 2 };
^
{ }
$
So now there's a fixit in the right place, although the caret is still wrong.
So confirming for the caret part.