[Bug c/44772] [4.5 Regression] -Wc++-compat warns incorrectly for anonymous unions
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 11 20:40:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44772
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-11 20:40:36 UTC ---
Author: jakub
Date: Thu Nov 11 20:40:32 2010
New Revision: 166620
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166620
Log:
Backport from mainline
2010-11-05 Jakub Jelinek <jakub@redhat.com>
PR c/44772
* c-decl.c (warn_cxx_compat_finish_struct): Don't call
pointer_set_contains if DECL_NAME is NULL.
* gcc.dg/Wcxx-compat-21.c: New test.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/Wcxx-compat-21.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/c-decl.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list