This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: PR 5079
On Thu, 28 Aug 2003 00:11:44 -0700, Mark Mitchell <mark@codesourcery.com> wrote:
> PR optimization/5079
> * call.c (build_conditional_expr): Use decl_constant_value to
> simplify the arguments.
You can't do that here if the ?: is an lvalue, as it is in the testcase.
We need to wait until we know that we want the rvalue--perhaps the answer
is for decl_constant_value to recursively simplify COND_EXPRs along the
lines of rationalize_conditional_expr.
Jason