* pt.c (coerce_template_parms): Make sure to digest_init if
possible.
From-SVN: r17138
Thu Dec 18 14:51:50 1997 Mark Mitchell <mmitchell@usa.net>
+ * pt.c (coerce_template_parms): Make sure to digest_init if
+ possible.
+
* decl.c (duplicate_decls): Make the newdecl virtual if the
olddecl was, just as is done with other attributes of olddecl.
if (processing_template_decl)
val = maybe_fold_nontype_arg (arg);
else
- val = digest_init (t, arg, (tree *) 0);
+ val = arg;
+
+ if (!uses_template_parms (val) && !uses_template_parms (t))
+ val = digest_init (t, val, (tree *) 0);
if (val == error_mark_node
|| (processing_template_decl && uses_template_parms (val)))