This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48196] New: ICE (segmentation fault) on inclusion of <utility>, C++0x
- From: "gcchelp.5.adept at 0sg dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Mar 2011 19:35:17 +0000
- Subject: [Bug c++/48196] New: ICE (segmentation fault) on inclusion of <utility>, C++0x
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48196
Summary: ICE (segmentation fault) on inclusion of <utility>,
C++0x
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gcchelp.5.adept@0sg.net
Created attachment 23715
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23715
preprocessed source, exhibiting the bug
I will attach two preprocessed files, one for which GCC is working, and one for
which GCC stops with an ICE. The difference is in the inclusion of <utility> at
one point.
I am using GCC 4.5.2 on mac, compiled from FSF source as follows
Using built-in specs.
COLLECT_GCC=/opt/bin/gcc
COLLECT_LTO_WRAPPER=/opt/gcc-4.5/bin/../libexec/gcc/x86_64-apple-darwin10.6.0/4.5.2/lto-wrapper
Target: x86_64-apple-darwin10.6.0
Configured with: ../gcc-4.5.2/configure -prefix=/opt/gcc --with-gmp=/opt/gmp
--with-mpfr=/opt/mpfr --with-mpc=/opt/mpc --with-ppl=/opt/ppl
--with-cloog=/opt/cloog --disable-nls --enable-visibility --with-arch=nocona
Thread model: posix
gcc version 4.5.2 (GCC)
The command line option used to produce the bug:
/opt/bin/gcc -x c++ -m32 -fmessage-length=0 -pipe -std=gnu++0x -Wno-trigraphs
-fno-exceptions -fno-rtti -O0 -D_DEBUG=1 -isysroot
/Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -ffast-math
-Wno-invalid-offsetof -mmacosx-version-min=10.5 -gdwarf-2
-F/Users/christian/Desktop/depot/dev/build/../bin
-I/Users/christian/Desktop/depot/dev/build/../bin/include
-I/Users/christian/Desktop/depot/dev/build/../00-temp/mbl.build/Debug/arieslib-level0.build/DerivedSources/i386
-I/Users/christian/Desktop/depot/dev/build/../00-temp/mbl.build/Debug/arieslib-level0.build/DerivedSources
-Wall -fvisibility=hidden -c
/Users/christian/Desktop/depot/dev/build/../source/arieslib/script-compiler-codegen.cc
-o
/Users/christian/Desktop/depot/dev/build/../00-temp/mbl.build/Debug/arieslib-level0.build/Objects-normal/i386/script-compiler-codegen.o
When the ICE occurs, the output is
In file included from
/Users/christian/Desktop/depot/dev/build/../source/arieslib/core-table.h:29:0,
from
/Users/christian/Desktop/depot/dev/build/../source/arieslib/script-parser.h:11,
from
/Users/christian/Desktop/depot/dev/build/../source/arieslib/script-compiler.h:11,
from
/Users/christian/Desktop/depot/dev/build/../source/arieslib/script-compiler-codegen.cc:11:
/Users/christian/Desktop/depot/dev/build/../source/arieslib/core-array.h: In
member function 'void Array<T, Alloc>::InsertSpace(unsigned int, unsigned
int)':
/Users/christian/Desktop/depot/dev/build/../source/arieslib/core-array.h:716:34:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Thanks!