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: C++ PATCH: PR 27210


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


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