This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12146] New: ICE in lookup_template_function at cp/pt.c:4005
- From: "wjl at icecavern dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Sep 2003 23:32:56 -0000
- Subject: [Bug c++/12146] New: ICE in lookup_template_function at cp/pt.c:4005
- 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=12146
Summary: ICE in lookup_template_function at cp/pt.c:4005
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wjl at icecavern dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i586-mandrake-linux-gnu
Compiling some code with some partially specialized templates causes and ICE.
The code itself may be incorrect in some way, but it shouldn't cause an ICE.
Here is the appropriate info. I will attach the preprocessed source in just a
moment (there doesn't seem to be a way to do it from this bugzilla screen).
$ g++ -o test Convert.ii -v
Reading specs from /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.3.1/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib
--with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --disable-checking --enable-long-long
--enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java,pascal
--host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk)
/usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.3.1/cc1plus -fpreprocessed
Convert.ii -quiet -dumpbase Convert.ii -auxbase Convert -version -o
/tmp/ccBkAw2p.s
GNU C++ version 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk) (i586-mandrake-linux-gnu)
compiled by GNU C version 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk).
GGC heuristics: --param ggc-min-expand=55 --param ggc-min-heapsize=48162
Convert.cpp:14: internal compiler error: in lookup_template_function, at
cp/pt.c:4005
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://qa.mandrakesoft.com/> for instructions.