Do not consider COMPLEX_TYPE as fold_convertible_p
authorMartin Liska <mliska@suse.cz>
Fri, 8 Jul 2016 07:52:03 +0000 (09:52 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 8 Jul 2016 07:52:03 +0000 (07:52 +0000)
commit2660286dcab0a72865faa3406c1e81572a1e42c8
tree077fd0d189f5525c6d73a9798ee9442de39956ad
parent70cdd4ae94a5db49774b64881e93b6c58ecc5574
Do not consider COMPLEX_TYPE as fold_convertible_p

PR middle-end/71606
* fold-const.c (fold_convertible_p): As COMPLEX_TYPE
folding produces SAVE_EXPRs, thus return false for the type.
* gcc.dg/torture/pr71606.c: New test.

From-SVN: r238157
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr71606.c [new file with mode: 0644]