From 4d4f21f36ffe657943a061a6c46b0a3cf77a1acd Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 18 Mar 1996 19:42:40 -0500 Subject: [PATCH] (build_conditional_expr): If OP1 is null, set both OP1 and ORIG_OP1 to IFEXP. From-SVN: r11558 --- gcc/c-typeck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 3c4f26847e2..d17a61df5a5 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -3349,7 +3349,7 @@ build_conditional_expr (ifexp, op1, op2) { if (pedantic) pedwarn ("ANSI C forbids omitting the middle term of a ?: expression"); - ifexp = op1 = save_expr (ifexp); + ifexp = orig_op1 = op1 = save_expr (ifexp); } ifexp = truthvalue_conversion (default_conversion (ifexp)); -- 2.30.2