[Bug c/60784] Spurious -Wmissing-field-initializers warning for anonymous structure
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60784 Christian Bauer changed: What|Removed |Added CC||cb at cebix dot net --- Comment #9 from Christian Bauer --- There still appears to be a problem here, even with GCC 6.2.1 (gcc-6 (SUSE Linux) 6.2.1 20160826 on x86_64): // gcc -Wextra warn.c -o /dev/null // struct foo { char x; struct { char a; char b; }; }; int main(void) { struct foo test[1] = { [0].x = 1, [0].a = 2, [0].b = 3, }; return test[0].a == 2; } /// Output: warn.c: In function ‘main’: warn.c:12:9: warning: missing initializer for field ‘({anonymous})’ of ‘struct foo’ [-Wmissing-field-initializers] [0].a = 2, ^ warn.c:6:5: note: ‘({anonymous})’ declared here }; Interestingly, changing "[0].x = 1" to "[0].x = 0" makes the warning disappear.
[Bug testsuite/60487] FAIL: gcc.dg/tree-prof/crossmodule-indircall-1a.c compilation, -fprofile-generate -D_PROFILE_GENERATE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60487 Christian Bauer changed: What|Removed |Added CC||cb at cebix dot net --- Comment #1 from Christian Bauer --- This test case also fails when building GCC 4.9.2 on x86_64-unknown-linux: Executing on host: /tmp/gcc-build/gcc/xgcc -B/tmp/gcc-build/gcc/ /tmp/gcc-4.9.2/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indircall-1a.c -fno-diagnostics-show-caret -fdiagnostics-color=never /tmp/gcc-4.9.2/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indircall-1a.c -fprofile-generate -D_PROFILE_GENERATE -lm -m32 -o /tmp/gcc-build/gcc/testsuite/gcc/crossmodule-indircall-1a.x01(timeout = 300) spawn /tmp/gcc-build/gcc/xgcc -B/tmp/gcc-build/gcc/ /tmp/gcc-4.9.2/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indircall-1a.c -fno-diagnostics-show-caret -fdiagnostics-color=never /tmp/gcc-4.9.2/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indircall-1a.c -fprofile-generate -D_PROFILE_GENERATE -lm -m32 -o /tmp/gcc-build/gcc/testsuite/gcc/crossmodule-indircall-1a.x01 /tmp/ccze6Bo8.o: In function `main': crossmodule-indircall-1a.c:(.text+0x0): multiple definition of `main' /tmp/cchSmBQj.o:crossmodule-indircall-1a.c:(.text+0x0): first defined here collect2: error: ld returned 1 exit status compiler exited with status 1