r237622 - in /trunk/gcc: c/ChangeLog c/c-typeck...

jsm28@gcc.gnu.org jsm28@gcc.gnu.org
Mon Jun 20 22:58:00 GMT 2016


Author: jsm28
Date: Mon Jun 20 22:58:20 2016
New Revision: 237622

URL: https://gcc.gnu.org/viewcvs?rev=237622&root=gcc&view=rev
Log:
Fix ICE on conditional expression between DFP and non-DFP float (PR c/71601).

A conditional expression between DFP and non-DFP floating-point
produces an ICE.  This patch fixes this by making
build_conditional_expr return early when c_common_type produces an
error.

Bootstrapped with no regressions on x86_64-pc-linux-gnu.

	PR c/71601
gcc/c:
	* c-typeck.c (build_conditional_expr): Return error_mark_node if
	c_common_type returns error_mark_node.

gcc/testsuite:
	* gcc.dg/dfp/usual-arith-conv-bad-3.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/dfp/usual-arith-conv-bad-3.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list