This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22405] [4.1 Regression] ICE in when instantiating a template function, for illegal code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jul 2005 15:58:27 -0000
- Subject: [Bug c++/22405] [4.1 Regression] ICE in when instantiating a template function, for illegal code
- References: <20050711095219.22405.martin@mpa-garching.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-11 15:58 -------
Here is the backtrace:
#0 most_specialized_instantiation (instantiations=0xb7d84570) at /home/peshtigo/pinskia/src/gnu/
gcc/src/gcc/cp/pt.c:10723
#1 0x080a071b in determine_specialization (template_id=0xb7ce5168, decl=0xb7d82a80,
targs_out=0xbff9dc08, need_member_template=0,
template_count=0) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/pt.c:10789
#2 0x080aae5c in check_explicit_specialization (declarator=0xb7ce5168, decl=Variable "decl" is not
available.
)
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/pt.c:2010
#3 0x0806a6d3 in grokfndecl (ctype=0x0, type=Variable "type" is not available.
) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/decl.c:5734
#4 0x08078576 in grokdeclarator (declarator=0x876f554, declspecs=0xbff9dd9c,
decl_context=NORMAL, initialized=0, attrlist=0x0)
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/decl.c:8127
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22405