This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++/v2.97 ice when inner template arg has default


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]