[PATCH] PR c++/43327

Jason Merrill jason@redhat.com
Tue Mar 23 17:17:00 GMT 2010


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



More information about the Gcc-patches mailing list