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++/14755] New: miscompilation in bitfielded signed integers


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


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