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]
Other format: [Raw text]

Re: [PATCH] PR c++/43327


On 03/16/2010 06:51 AM, Dodji Seketeli wrote:
This patch fixes tsubst_copy_and_build so that fold_non_dependent_expr
folds constant VAR_DECLs into their constant values.

This is wrong; it will break lvalue uses of the variable.


It seems like the problem is that we aren't calling convert_template_argument after doing the substitution.

Jason


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