This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[ICE] C++ new-abi ICE: libstdc++-v3 template instantiation
- To: gcc-bugs at gcc dot gnu dot org
- Subject: [ICE] C++ new-abi ICE: libstdc++-v3 template instantiation
- From: Chip Salzenberg <chip at valinux dot com>
- Date: Mon, 12 Jun 2000 14:40:31 -0700
The current C++ w/new-abi and the attached preprocessor source dies
with an ICE. Configuration:
configure --with-gcc-version-trigger=/u/build/gcc/egcs-new/SRC/gcc/version.c --host=i686-pc-linux --prefix=/usr/local/egcs --enable-threads=posix --enable-shared --enable-version-specific-runtime-libs --enable-languages=objc,c++ --enable-new-gxx-abi --enable-namespaces --enable-libstdcxx-v3 --enable-long-long --norecursion
Command line:
cc1plus -dumpbase misc-inst.cc -g -g -O2 -Wall -Wno-format -W -Wwrite-strings -Winline -version -fnew-abi -fvtable-thunks -fno-implicit-templates -fdiagnostics-show-location=once -fimplicit-templates -o misc-inst.o misc-inst.i
std::basic_ostream<_CharT, _Traits>::tellp ()
[with _CharT = char, _Traits = std::char_traits<char>]
In file included from ../../../SRC/libstdc++-v3/bits/ostream.tcc:364:
../../../SRC/libstdc++-v3/bits/basic_ios.h: At top level:
../../../SRC/libstdc++-v3/bits/basic_ios.h: In instantiation of `std::basic_ostream<_CharT, _Traits>::tellp () [with _CharT = char, _Traits = std::char_traits<char>]':
../../../SRC/libstdc++-v3/src/misc-inst.cc:116: instantiated from here
../../../SRC/libstdc++-v3/bits/basic_ios.h:125: Internal compiler error 19990803.
../../../SRC/libstdc++-v3/bits/basic_ios.h:125: Please submit a full bug report.
../../../SRC/libstdc++-v3/bits/basic_ios.h:125: See <URL:http://www.gnu.org/software/gcc/bugs.html> for
instructions.
Breakpoint 1, 0x40037d35 in exit () from /lib/libc.so.6
(gdb) where
#0 0x40037d35 in exit () from /lib/libc.so.6
#1 0x804aee3 in fatal () at ../SRC/gcc/diagnostic.c:1425
#2 0x822a9c3 in my_friendly_abort () at ../../SRC/gcc/cp/typeck2.c:335
#3 0x8277d92 in walk_tree (tp=0x4162f7f8, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1390
#4 0x8277bc5 in walk_tree (tp=0x4162f7b0, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1347
#5 0x82779ba in walk_tree (tp=0x4162f790, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1263
#6 0x82779ba in walk_tree (tp=0x4162f770, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1263
#7 0x82779ba in walk_tree (tp=0x4162f754, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1263
#8 0x82779ba in walk_tree (tp=0x4162f730, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1263
#9 0x82779ba in walk_tree (tp=0x4162f620, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1263
#10 0x8277a86 in walk_tree (tp=0x4162f5a0, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1283
#11 0x8277a86 in walk_tree (tp=0x4162f520, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1283
#12 0x8277a86 in walk_tree (tp=0x4162f4c0, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1283
#13 0x8277a86 in walk_tree (tp=0x4162f4b0, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1283
#14 0x82779ba in walk_tree (tp=0xbf7feaf8, func=0x827c9d0 <copy_body_r>,
data=0xbf7fed54) at ../../SRC/gcc/cp/tree.c:1263
#15 0x827cbfb in copy_body (id=0xbf7fed54) at ../../SRC/gcc/cp/optimize.c:360
#16 0x827d1ab in expand_call_inline (tp=0x4162a0f0, walk_subtrees=0xbf7feb5c,
data=0xbf7fed54) at ../../SRC/gcc/cp/optimize.c:727
#17 0x8277901 in walk_tree (tp=0x4162a0f0,
func=0x827cf80 <expand_call_inline>, data=0xbf7fed54)
at ../../SRC/gcc/cp/tree.c:1228
#18 0x82779ba in walk_tree (tp=0x41d066bc,
func=0x827cf80 <expand_call_inline>, data=0xbf7fed54)
at ../../SRC/gcc/cp/tree.c:1263
#19 0x8277a17 in walk_tree (tp=0x41629780,
func=0x827cf80 <expand_call_inline>, data=0xbf7fed54)
at ../../SRC/gcc/cp/tree.c:1278
#20 0x8277a86 in walk_tree (tp=0x41628a40,
func=0x827cf80 <expand_call_inline>, data=0xbf7fed54)
at ../../SRC/gcc/cp/tree.c:1283
#21 0x8277a86 in walk_tree (tp=0x41627220,
func=0x827cf80 <expand_call_inline>, data=0xbf7fed54)
at ../../SRC/gcc/cp/tree.c:1283
#22 0x8277a86 in walk_tree (tp=0x416271c0,
func=0x827cf80 <expand_call_inline>, data=0xbf7fed54)
at ../../SRC/gcc/cp/tree.c:1283
#23 0x8277a86 in walk_tree (tp=0x416223a0,
func=0x827cf80 <expand_call_inline>, data=0xbf7fed54)
at ../../SRC/gcc/cp/tree.c:1283
#24 0x8277a86 in walk_tree (tp=0x41622300,
func=0x827cf80 <expand_call_inline>, data=0xbf7fed54)
at ../../SRC/gcc/cp/tree.c:1283
#25 0x8277a86 in walk_tree (tp=0x41622250,
func=0x827cf80 <expand_call_inline>, data=0xbf7fed54)
at ../../SRC/gcc/cp/tree.c:1283
#26 0x82779ba in walk_tree (tp=0x41df3754,
func=0x827cf80 <expand_call_inline>, data=0xbf7fed54)
at ../../SRC/gcc/cp/tree.c:1263
#27 0x827d2d8 in expand_calls_inline (tp=0x41df3754, id=0xbf7fed54)
at ../../SRC/gcc/cp/optimize.c:794
#28 0x827d42a in optimize_function (fn=0x40c15980)
at ../../SRC/gcc/cp/optimize.c:837
#29 0x8276267 in expand_body (fn=0x40c15980)
at ../../SRC/gcc/cp/semantics.c:2795
#30 0x8229d85 in instantiate_decl (d=0x40c15980, defer_ok=0)
at ../../SRC/gcc/cp/pt.c:9710
#31 0x8229e96 in instantiate_pending_templates () at ../../SRC/gcc/cp/pt.c:9779
#32 0x82381cc in finish_file () at ../../SRC/gcc/cp/decl2.c:3568
#33 0x824c03b in yyparse () at parse.y:434
#34 0x804bf4c in compile_file (name=0x40109790 "") at ../SRC/gcc/toplev.c:2289
#35 0x804f36d in main (argc=20, argv=0xbf7ffa84) at ../SRC/gcc/toplev.c:4726
--
Chip Salzenberg - a.k.a. - <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K
misc-inst.i.gz