[Bug c/64417] [SH] FAIL: gcc.c-torture/compile/pr28865.c -O0 (test for excess errors)
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 5 13:57:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64417
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I tend to agree. In other words,
struct foo { int x; char y[]; };
struct foo a1[] = { { 1, "a" } };
struct foo a2[] = { { 1, { "a" } } };
struct foo a3[] = { 1, "a" };
struct foo b1[] = { { 1, { 'a', '\0' } } };
struct foo b2[] = { 1, { 'a', '\0' } };
We reject b1 and b2, but should also reject a[123].
More information about the Gcc-bugs
mailing list