C++ PATCH: PR 27210
Mark Mitchell
mark@codesourcery.com
Sun May 21 18:18:00 GMT 2006
Mark Mitchell wrote:
> +tree
> +cp_save_expr (tree expr)
> +{
> + if (processing_template_decl)
> + return expr;
> + return save_expr (expr);
> +}
> +
I see that I posted an undocumented version of this function; the
version actually committed is:
/* Like save_expr, but for C++. */
tree
cp_save_expr (tree expr)
{
/* There is no reason to create a SAVE_EXPR within a template; if
needed, we can create the SAVE_EXPR when instantiating the
template. Furthermore, the middle-end cannot handle C++-specific
tree codes. */
if (processing_template_decl)
return expr;
return save_expr (expr);
}
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list