Bug 21420

Summary: G++ Segfault
Product: [Retired] Red Hat Linux Reporter: Chmouel Boudjnah <cboudjnah>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-20 11:16:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chmouel Boudjnah 2000-11-28 13:12:09 UTC
With last rawhide g++ this simple program make it segfault :

struct a { int a; };
struct b : a {};

Comment 1 Jakub Jelinek 2001-02-20 11:16:24 UTC
Should be fixed by http://gcc.gnu.org/ml/gcc-patches/2001-02/msg01190.html
(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.