This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14755] New: miscompilation in bitfielded signed integers
- From: "mueller at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Mar 2004 16:18:43 -0000
- Subject: [Bug c++/14755] New: miscompilation in bitfielded signed integers
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
this testcase is miscompiled here (with g++ -Wall -W -pedantic -v):
Configured with: ../configure --prefix=/opt/gcc --enable-c99 --enable-long-long
--enable-checking --enable-shared --enable-threads --enable-languages=c,c++
Thread model: posix
gcc version 3.4.0 20040327 (prerelease)
=== Cut ===
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
struct QtFontStyle
{
QtFontStyle( )
: count( 0 )
{}
~QtFontStyle() {
while ( count-- ) {
abort();
break;
}
}
signed int count : 31;
};
int main()
{
QtFontStyle* qf = new QtFontStyle;
delete qf;
}
=== Cut ===
--
Summary: miscompilation in bitfielded signed integers
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mueller at kde dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14755