This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/v2.97 ice when inner template arg has default
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: c++/v2.97 ice when inner template arg has default
- From: Larry Evans <jcampbell3 at prodigy dot net>
- Date: Fri, 29 Dec 2000 16:25:26 -0600
- References: <3A45936D.54A9B953@prodigy.net>
Larry Evans wrote:
> cd /home/evansl/prog_dev/gcc_all/tests/SubjStateType/
> make -k bugreport
> -------------------
...skipping
The problem is caused by the inner for loop in tsubst_template_parms not checking
for TYPE_CODE(default_value) == CONST_DECL. Since tsubst calls tsubst_decl,
and tsubst_decl cannot handle CONST_DECL, the ICE is produced.
This may also solve 1088 since it sounds very similar.