c++/899: ICE in static initialization with -fno-elide-constructors

suckfish@ihug.co.nz suckfish@ihug.co.nz
Sun Nov 26 22:16:00 GMT 2000


>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:


More information about the Gcc-bugs mailing list