This is the mail archive of the gcc-patches@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++ PATCH:RFC]inner template default & typename ::template scoperef


> 
> 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

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