This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: PR 27210
- From: Mark Mitchell <mark at codesourcery dot com>
- To: mark at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 21 May 2006 10:28:34 -0700
- Subject: Re: C++ PATCH: PR 27210
- References: <200605211727.k4LHRNOY029951@sethra.codesourcery.com>
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