re PR middle-end/30147 (ICE in fold_convert with -O2)
authorRichard Guenther <rguenther@suse.de>
Tue, 12 Dec 2006 12:13:48 +0000 (12:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 12 Dec 2006 12:13:48 +0000 (12:13 +0000)
commit8e3dc7a3449a516cacb71735055eb12fcebf5b6f
treeeef02827a46ae7abdabd3134fa48f4b80f1b23ea
parent527a08917e8c4310c129c42649991f51b2f5c1a9
re PR middle-end/30147 (ICE in fold_convert with -O2)

2006-12-12  Richard Guenther  <rguenther@suse.de>

PR middle-end/30147
* fold-const.c (fold_read_from_constant_string): Only fold read
from constant string if the result type is integer.

* gfortran.fortran-torture/compile/pr30147.f90: New testcase.

From-SVN: r119776
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/compile/pr30147.f90 [new file with mode: 0644]