Bug 21861

Summary: g++: Internal error: Segmentation fault
Product: [Retired] Red Hat Linux Reporter: bastiaan
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA 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: 2000-12-07 00:03:43 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 bastiaan 2000-12-07 00:03:41 UTC
The following (invalid) code generates a segfault:

#include <vector>

int main() {
    vector<int&> v;
}

$ g++ refbug.cpp
....
/usr/include/g++-3/stl_vector.h:364: forming pointer to reference type 
`int &'
/usr/include/g++-3/stl_vector.h:364: Internal error: Segmentation fault
.

Comment 1 Jakub Jelinek 2000-12-20 12:17:31 UTC
Fixed in gcc-c++-2.96-69.