This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/42217] [4.5 Regression] ICE with zero-length bit-field



------- Comment #3 from dodji at gcc dot gnu dot org  2009-12-03 08:33 -------
Subject: Bug 42217

Author: dodji
Date: Thu Dec  3 08:33:03 2009
New Revision: 154938

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154938
Log:
Fix PR c++/42217

gcc/cp/ChangeLog
        PR c++/42217
        * class.c (remove_zero_width_bit_fields): The width of the bit field is
        in DECL_SIZE, not in DECL_INITIAL.

gcc/testsuite/ChangeLog
        PR c++/42217
        * g++.dg/other/bitfield4.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/other/bitfield4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42217


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]