This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 21420 - G++ Segfault
G++ Segfault
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2000-11-28 08:12 EST by Chmouel Boudjnah
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-02-20 06:16:28 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Chmouel Boudjnah 2000-11-28 08:12:09 EST
With last rawhide g++ this simple program make it segfault :

struct a { int a; };
struct b : a {};
Comment 1 Jakub Jelinek 2001-02-20 06:16:24 EST
Should be fixed by
(well, I have actually 3 possible patches, this one is the safest (but slowest
in the rare case structure has the same field name as itself).
Note that gcc-2.95 and earlier would give an error for such code, that's why
haven't worked on this before.
The patch will make it into gcc-c++-2.96-76.

Note You need to log in before you can comment on or make changes to this bug.