This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/12273] New: libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
- From: "olh at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Sep 2003 11:08:20 -0000
- Subject: [Bug bootstrap/12273] New: libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
- 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=12273
Summary: libstdc++-v3/include/bits/demangle.h:217: internal
compiler error: virtual array [0]: element 0 out of
bounds in initialize_inlined_parameters, at tree-
inline.c:680
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: olh at suse dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc64-linux
GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux
last successful build for native powerpc64-linux:
Mon Sep 8 14:16:03 UTC 2003
olh@mandarine:~/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src> /home/olh/obj-gcc/gcc/xgcc -shared-libgcc -B/home/olh/obj-gcc/gcc/ -nostdinc++ -L/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src -L/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src/.libs -B/home/olh/install-gcc-head/powerpc64-unknown-linux-gnu/bin/ -B/home/olh/install-gcc-head/powerpc64-unknown-linux-gnu/lib/ -isystem /home/olh/install-gcc-head/powerpc64-unknown-linux-gnu/include -isystem /home/olh/install-gcc-head/powerpc64-unknown-linux-gnu/sys-include -m32 -fPIC -mstrict-align -I/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include -I/home/olh/gcc-head/libstdc++-v3/libsupc++ -O2 -O1 -Wall -fsigned-char -O1 -Wall -fsigned-char -D_GNU_SOURCE -m32 -fPIC -mstrict-align -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -fdiagnostics-show-location=once -fimplicit-templates -c /home/olh/gcc-head/libstdc++-v3/src/demangle.cc -fPIC -DPIC -o .libs/demangle.o --save-temps
In file included from /home/olh/gcc-head/libstdc++-v3/src/demangle.cc:1468:
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h: In member function `bool __gnu_cxx::demangler::session<Allocator>::decode_type_with_postfix(std::basic_string<char, std::char_traits<char>, Allocator>&, std::basic_string<char, std::char_traits<char>, Allocator>&, __gnu_cxx::demangler::qualifier_list<Allocator>*) [with Allocator = std::allocator<char>]':
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h:217: instantiated from `void __gnu_cxx::demangler::qualifier_list<Allocator>::add_qualifier_start(__gnu_cxx::demangler::simple_qualifier_nt, int, int) [with Allocator = std::allocator<char>]'
/home/olh/gcc-head/libstdc++-v3/src/demangle.cc:1468: instantiated from here
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
olh@mandarine:~/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src> /home/olh/obj-gcc/gcc/cc1plus -fpreprocessed demangle.ii -quiet -dumpbase demangle.cc -m32 -mstrict-align -m32 -mstrict-align -auxbase-strip .libs/demangle.o -O2 -O1 -O1 -Wall -Wall -Wall -Wno-format -W -Wwrite-strings -version -fPIC -fsigned-char -fsigned-char -fPIC -fno-implicit-templates -fdiagnostics-show-location=once -fimplicit-templates -fPIC -o demangle.s -v -v
ignoring nonexistent directory "/home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../powerpc64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../include/c++/3.4
/home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../include/c++/3.4/powerpc64-unknown-linux-gnu
/home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/../../../../include/c++/3.4/backward
/usr/local/include
/home/olh/install-gcc-head/include
/home/olh/install-gcc-head/lib/gcc/powerpc64-unknown-linux-gnu/3.4/include
/usr/include
End of search list.
GNU C++ version 3.4 20030914 (experimental) (powerpc64-unknown-linux-gnu)
compiled by GNU C version 3.4 20030914 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
In file included from /home/olh/gcc-head/libstdc++-v3/src/demangle.cc:1468:
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h: In member function `bool __gnu_cxx::demangler::session<Allocator>::decode_type_with_postfix(std::basic_string<char, std::char_traits<char>, Allocator>&, std::basic_string<char, std::char_traits<char>, Allocator>&, __gnu_cxx::demangler::qualifier_list<Allocator>*) [with Allocator = std::allocator<char>]':
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h:217: instantiated from `void __gnu_cxx::demangler::qualifier_list<Allocator>::add_qualifier_start(__gnu_cxx::demangler::simple_qualifier_nt, int, int) [with Allocator = std::allocator<char>]'
/home/olh/gcc-head/libstdc++-v3/src/demangle.cc:1468: instantiated from here
/home/olh/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/bits/demangle.h:217: internal compiler error: virtual array [0]: element 0 out of bounds in initialize_inlined_parameters, at tree-inline.c:680
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
olh@mandarine:~/obj-gcc/powerpc64-unknown-linux-gnu/32/libstdc++-v3/src> cat ~/gcc-head/LAST_UPDATED
Sun Sep 14 07:13:45 UTC 2003
I used this patch (for PR11640) while getting the above, I will try without it:
Index: gcc/cfgrtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfgrtl.c,v
retrieving revision 1.97
diff -u -p -p -u -r1.97 cfgrtl.c
--- gcc/cfgrtl.c 22 Aug 2003 06:45:12 -0000 1.97
+++ gcc/cfgrtl.c 14 Sep 2003 11:05:47 -0000
@@ -790,7 +790,7 @@ try_redirect_by_replacing_jump (edge e,
if (tablejump_p (insn, &label, &table))
delete_insn_chain (label, table);
- barrier = next_nonnote_insn (src->end);
+ barrier = next_insn (src->end);
if (!barrier || GET_CODE (barrier) != BARRIER)
emit_barrier_after (src->end);
}