This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re:[C++ PATCH:RFC]inner template default & typename ::template scoperef
- To: jcampbell3 at prodigy dot net
- Subject: Re:[C++ PATCH:RFC]inner template default & typename ::template scoperef
- From: Kriang Lerdsuwanakij <lerdsuwa at users dot sourceforge dot net>
- Date: Tue, 23 Jan 2001 23:49:24 -0800
- CC: gcc-patches at gcc dot gnu dot org
- Reply-To: lerdsuwa at users dot sourceforge dot net
>
> I'd appreciate comments on the attached patch (cvs-diff-c3p.stdout)
> which is for bugs analyzed in:
>
> http://gcc.gnu.org/ml/gcc-bugs/2000-12/msg00567.html
> http://gcc.gnu.org/ml/gcc-bugs/2001-01/msg00160.html
>
> The attached file def2.cpp, is a test case for the bug in msg00567.
> The attached file, sref4.cpp, is a test case for the bug in msg00160.
>
Hi
I have only looked at the msg00567 bug. I don't think calling
tsubst() on default_value in the function tsubst_template_parms()
is right. We still have to process CONST_DECL nodes in some situations.
(For example, see the CONST_DECL case in tsubst_copy.) It should be
fixed by calling tsubst_copy or tsubst_expr instead of tsubst.
--Kriang