This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19448] Different value representation for bitfield width exceeding its type size.
- From: "janis187 at us dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2005 01:27:57 -0000
- Subject: [Bug c++/19448] Different value representation for bitfield width exceeding its type size.
- References: <20050114181939.19448.yanliu@ca.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From janis187 at us dot ibm dot com 2005-01-15 01:27 -------
Darn, I did my comments wrong.
Yan, the testcase you attached doesn't match the output you show. For all
compilers I have available on a RHEL3 system I get:
Dumping array with size of 2
Character 0 is 1
Character 1 is 0
c1.m1=1,
Please provide some examples of classes with bitfields that are not compatible
between releases of GCC. I've attached an example testcase for binary
compatibility tests in the format used by the GCC testsuite. Our binary
compatibility tests are not at all complete and we need more tests to cover
this kind of functionality; that's on my todo list already.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19448