diff options
author | Joseph Myers <joseph@codesourcery.com> | 2016-06-20 23:58:20 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2016-06-20 23:58:20 +0100 |
commit | 5a5786714dc8638bf1a757eb89c2030dbfd239f1 (patch) | |
tree | 77aba49c84485917b8be4c68189cb2c5e87af15d /gcc/cse.c | |
parent | 50aa64d58fd4cea25df2a9d9ddfc38e74dcdd94c (diff) | |
download | gcc-5a5786714dc8638bf1a757eb89c2030dbfd239f1.zip gcc-5a5786714dc8638bf1a757eb89c2030dbfd239f1.tar.gz gcc-5a5786714dc8638bf1a757eb89c2030dbfd239f1.tar.bz2 |
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.
From-SVN: r237622
Diffstat (limited to 'gcc/cse.c')
0 files changed, 0 insertions, 0 deletions