OSDN Git Service

Fix PR c++/42217
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Dec 2009 08:33:03 +0000 (08:33 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Dec 2009 08:33:03 +0000 (08:33 +0000)
commit8a72e7d5378073be6dc7dbf59137861dc3e5881b
tree801fa0d123db0311962b9a816fed19689206532c
parent9358725bfb628705d294484aab5d7bf1bdb5f7d7
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154938 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/bitfield4.C [new file with mode: 0644]