This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: PR 12515
- From: Richard Henderson <rth at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 21 Nov 2003 16:55:18 -0800
- Subject: Re: C++ PATCH: PR 12515
- References: <200311212213.hALMDVod002214@sirius.codesourcery.com>
On Fri, Nov 21, 2003 at 02:13:31PM -0800, Mark Mitchell wrote:
> return build (COND_EXPR,
> TREE_TYPE (expr),
> TREE_OPERAND (expr, 0),
> ! (TREE_OPERAND (expr, 1)
> ! ? build_non_dependent_expr (TREE_OPERAND (expr, 1))
> ! : build_non_dependent_expr (TREE_OPERAND (expr, 0))),
> build_non_dependent_expr (TREE_OPERAND (expr, 2)));
This looks like it would fail:
int main()
{
int i = 0, j;
j = ++i ? : 0;
if (i != 1 || j != 1)
abort ();
}
r~