This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/899: ICE in static initialization with -fno-elide-constructors
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/899: ICE in static initialization with -fno-elide-constructors
- From: suckfish at ihug dot co dot nz
- Date: 27 Nov 2000 06:07:59 -0000
- Reply-To: suckfish at ihug dot co dot nz
>Number: 899
>Category: c++
>Synopsis: ICE in static initialization with -fno-elide-constructors
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Sun Nov 26 22:16:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Ralph Loader
>Release: 2.97 (2000-11-20 snapshot)
>Organization:
>Environment:
Linux-2.4.0-test10. glibc-2.2
>Description:
Compile the following code with g++ -O2 -fno-elide-constructors:
#include <ext/hash_map>
std::hash_map<int, int> myMap;
This results in:
/opt/egcs-2000-11-20/include/g++-v3/bits/stl_vector.h: In function `void
__static_initialization_and_destruction_0(int, int)':
/opt/egcs-2000-11-20/include/g++-v3/bits/stl_vector.h:206: Internal error:
Segmentation fault.
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
As above.
>Fix:
A work-around is to not specify -fno-elide-constructors.
[Not sure why anyone would want this flag in real life -
I was only using to try to track down a different g++ bug...]
>Release-Note:
>Audit-Trail:
>Unformatted: