re PR middle-end/32920 (error: type mismatch in binary expression)
authorRichard Guenther <rguenther@suse.de>
Sat, 28 Jul 2007 16:26:44 +0000 (16:26 +0000)
committerKrister Walfridsson <kristerw@gcc.gnu.org>
Sat, 28 Jul 2007 16:26:44 +0000 (16:26 +0000)
commit539d5e79b5f1a7bf8403391e3a54b50c140b43ef
treec6148dda4b174966d7e453ead8ac9abe3a87b666
parent5fcb93f1387118d919887c5f22cfc32b5adfc0ea
re PR middle-end/32920 (error: type mismatch in binary expression)

2007-07-28  Richard Guenther  <rguenther@suse.de>

PR middle-end/32920
* fold-const.c (fold_cond_expr_with_comparison): Convert
operand zero of MIN/MAX_EXPR to correct type.

* gcc.c-torture/compile/pr32920.c: New testcase.

From-SVN: r127021
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr32920.c [new file with mode: 0644]