Bug 23310 - ICE: stl_set.h:318: internal compiler error: Segmentation fault
Summary: ICE: stl_set.h:318: internal compiler error: Segmentation fault
Status: RESOLVED DUPLICATE of bug 22444
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 07:50 UTC by Benjamin Kosnik
Modified: 2005-08-10 10:30 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work: 4.0.0
Known to fail: 4.1.0
Last reconfirmed: 2005-08-10 09:32:47


Attachments
pre-processed source (34.25 KB, application/octet-stream)
2005-08-10 07:53 UTC, Benjamin Kosnik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Kosnik 2005-08-10 07:50:18 UTC
From make-check in libstdc++

FAIL: 23_containers/set/explicit_instantiation/3.cc (test for excess errors)
Excess errors:
/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/bits/stl_set.h: In member
function 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>,
_Compare, typename _Alloc::rebind<_Key>::other>::const_iterator, bool>
std::set<_Key, _Compare, _Alloc>::insert(const _Key&) [with _Key = int, _Compare
= std::less<int>, _Alloc = std::allocator<char>]':
/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/bits/stl_set.h:318:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This is with -O2 only, -O0 and -O1 are fine.
Comment 1 Benjamin Kosnik 2005-08-10 07:53:16 UTC
Created attachment 9459 [details]
pre-processed source
Comment 2 Richard Biener 2005-08-10 09:32:47 UTC
Confirmed.

/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/bits/stl_set.h: In member
function ‘std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>,
_Compare, typename _Alloc::rebind<_Key>::other>::const_iterator, bool>
std::set<_Key, _Compare, _Alloc>::insert(const _Key&) [with _Key = int, _Compare
= std::less<int>, _Alloc = std::allocator<char>]’:
/mnt/hd/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/bits/stl_set.h:318:
internal compiler error: tree check: expected ssa_name, have var_decl in
is_old_name, at tree-into-ssa.c:466

IVOPTs bug.  Aka, -fno-ivopts fixes it.  Sigh.
Comment 3 Richard Biener 2005-08-10 09:40:24 UTC
Maybe too fast in blaming IVOPTs -- the ICE is during update_ssa of the alias
pass, and -fdump-tree-alias fixes it.  This is a duplicate bug of ... ?  (I had
this personally at one time)  Maybe it's worth minimizing, maybe not, I'll try.
Comment 4 Andrew Pinski 2005-08-10 10:30:11 UTC

*** This bug has been marked as a duplicate of 22444 ***