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++/15967] New: ICE: Segmentation fault


Compiling the following code will crash gcc with a SIGSEGV ICE:  
 
------------------------<gccbug10.cc>------------------------- 
// (c) Wolfgang Wieser 06/2004.  
 
typedef unsigned int size_t; 
 
struct A { void *operator new(size_t s){} }; 
struct B { void *operator new(size_t s){} }; 
 
struct C : A,B {}; 
 
int crash() 
{ 
	C *c=new C();     // <-- line 12, ICE 
} 
-------------------------------------------------------------- 
 
bash# gcc -c gccbug10.cc 
gccbug10.cc: In function `int crash()': 
gccbug10.cc:12: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
Affected versions:  
gcc (GCC) 3.4.1 20040501 (prerelease) 
gcc (GCC) 3.4.1 20040612 (prerelease) 
maybe others as well.

-- 
           Summary: ICE: Segmentation fault
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wwieser at gmx dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-linux-gnu
  GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu


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


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