Bug 7083 - ICE using -gstabs with dodgy class derivation
|
Bug#:
7083
|
Product: gcc
|
Version: 3.1
|
|
Host:
|
Target:
|
Build:
|
|
Status: RESOLVED
|
Severity: normal
|
Priority: P3
|
|
Resolution: FIXED
|
Assigned To: unassigned@gcc.gnu.org
|
Reported By: dmonksfd@broadcom.com
|
|
Component: c++
|
Target Milestone: 3.3.1
|
|
Summary: ICE using -gstabs with dodgy class derivation
|
|
Keywords: ice-on-valid-code, monitored
|
|
Opened: 2002-06-20 03:36
|
|
Description:
|
Last confirmed: 2003-06-23 11:16
|
Opened: 2002-06-20 03:36
|
gcc -v:
Reading specs from /tools/gcc/3.1/i686-2.4.7-10/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: ../gcc-3.1/configure --prefix=/tools/gcc/3.1 --exec-prefix=/tools/gcc/3.1/i686-2.4.7-10 --disable-nls --enable-shared
Thread model: single
gcc version 3.1
Command line:
g++ -gstabs -c gcc31bug.cc
Output:
gcc31bug.cc:5: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Preprocessed source:
# 1 "gcc31bug.cc"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "gcc31bug.cc"
typedef struct {
int x;
} A;
class B: public A {
int y;
};
Notes:
This is nasty (probably invalid) code, but it works
under -ggdb, and probably shouldn't segfault anyway.
Release:
3.1
State-Changed-From-To: open->analyzed
State-Changed-Why: Confirm.
*** Bug 8446 has been marked as a duplicate of this bug. ***
This also fails in 3.2.2 and 3.2.3.
Most likely the same fix for bug 11473, fixed this bug. I will submit a
testcase when I get
cvs access.