Commit 4d4f21f3 by Richard Kenner

(build_conditional_expr): If OP1 is null, set both OP1 and ORIG_OP1 to IFEXP.

From-SVN: r11558
parent 9cd7239f
...@@ -3349,7 +3349,7 @@ build_conditional_expr (ifexp, op1, op2) ...@@ -3349,7 +3349,7 @@ build_conditional_expr (ifexp, op1, op2)
{ {
if (pedantic) if (pedantic)
pedwarn ("ANSI C forbids omitting the middle term of a ?: expression"); 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)); ifexp = truthvalue_conversion (default_conversion (ifexp));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment