Bug 21861 - g++: Internal error: Segmentation fault
g++: Internal error: Segmentation fault
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-12-06 19:03 EST by bastiaan
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:
Environment:
Last Closed: 2000-12-06 19:03:43 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description bastiaan 2000-12-06 19:03:41 EST
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 07:17:31 EST
Fixed in gcc-c++-2.96-69.

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