https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37200
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Eric Gallager from comment #3) > (In reply to Eric Gallager from comment #2) > > Confirmed that gcc still prints 2 warnings for the testcase. It's necessary > > to set the standard manually to c89 or gnu89 now that GCC defaults to > > -std=gnu11. Now that GCC has carets for its diagnostics, we can see that the > > 2 warnings actually point to different places: > > > > $ /usr/local/bin/gcc -c -std=gnu89 -pedantic 37200.c > > 37200.c: In function ‘foo’: > > 37200.c:10:11: warning: initializer element is not computable at load time > > [-Wpedantic] > > { (void**) &x->tst } > > ^ > > 37200.c:10:3: warning: initializer element is not computable at load time > > [-Wpedantic] > > { (void**) &x->tst } > > ^ > > > > So are they still actually duplicates? > > WAITING on a response to this. No response; I'm going to close this on the reasoning that the carets show that they're not actually duplicates.