This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers
- From: "lloyd at randombit dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2003 14:17:47 -0000
- Subject: [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
Summary: 3.3: ICE with -gstabs when including STL headers
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lloyd at randombit dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-linux
GCC host triplet: i686-linux
GCC target triplet: i686-linux
Including virtually any STL header and attempting to compile with -gstabs with
GCC 3.3 causes an ICE on x86/Linux. I'm using glibc 2.2.5 and binutils
2.11.93.0.2, though I doubt either is relevant here. Using other debug flags,
like -gstabs+, -gdwarf, -gdwarf-2, etc, seems to work fine.
$ cat stabsbug.cpp
#include <vector>
int main() { return 0; }
$ g++-3.3 -gstabs stabsbug.cpp -c -o /dev/null
In file included from /usr/local/gcc-3.3/include/c++/3.3/bits/stl_algobase.h:73,
from /usr/local/gcc-3.3/include/c++/3.3/vector:67,
from stabsbug.cpp:1:
/usr/local/gcc-3.3/include/c++/3.3/bits/stl_iterator_base_types.h:84: 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.
$ g++-3.3 -v
Reading specs from /usr/local/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure --prefix=/usr/local/gcc-3.3 --enable-threads
Thread model: posix
gcc version 3.3