re PR middle-end/17411 (ICE in immed_double_const)
authorRoger Sayle <roger@eyesopen.com>
Sat, 11 Sep 2004 23:44:21 +0000 (23:44 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sat, 11 Sep 2004 23:44:21 +0000 (23:44 +0000)
commitec76a0e0bf0a01edee001700b107a4772051d4ba
tree0f19177b7e46d272f7ff9c2f948d1da7b4787c9e
parentd6a1dfd98b85ba31c58c4d0f3f53adb3dd0044f1
re PR middle-end/17411 (ICE in immed_double_const)

PR middle-end/17411
* tree-sra.c (generate_element_zero): Revert recent build_int_cst
change. elt->type may be a floating point type, so use fold_convert.

* g++.dg/opt/pr17411-1.C: New test case.

From-SVN: r87377
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr17411-1.C [new file with mode: 0644]
gcc/tree-sra.c