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 optimization/13340] New: [3.3 regression] Segfault with C++ inheritance


[forwarded from http://bugs.debian.org/223226]

falk@juist:/tmp% cat min4.cc
struct allocator {
    ~allocator() throw() { }
};
struct Xprobe_Module_Param {
    allocator _M_node_allocator;    
    virtual ~Xprobe_Module_Param(void) { return; }
};
struct Xprobe_Module_Param_ICMP : public Xprobe_Module_Param {
    virtual ~Xprobe_Module_Param_ICMP(void) { return; }
    virtual void check_param();
};
struct ICMP_Echo_Code_Chk : public Xprobe_Module_Param_ICMP {
    virtual ~ICMP_Echo_Code_Chk(void) { return; }
    virtual void check_param();
};
void ICMP_Echo_Code_Chk::check_param() { }


falk@juist:/tmp% g++ -c -O min4.cc                
min4.cc: In destructor `virtual ICMP_Echo_Code_Chk::~ICMP_Echo_Code_Chk()':
min4.cc:13: 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.

Still present in 3.3.3 20031207. Does not occur at -O0.

-- 
           Summary: [3.3 regression] Segfault with C++ inheritance
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: critical
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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