OSDN Git Service

Check that result of string folding is of integral type.
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Sep 2010 14:44:20 +0000 (14:44 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Sep 2010 14:44:20 +0000 (14:44 +0000)
commit3689689967532fcba08488a67351be75f6e8faee
tree05617c079ccaa413d47387ff2560d6ff0312a40c
parent5eff8174eaf4360ecdaae13f89dafb7ce58c88ff
Check that result of string folding is of integral type.

gcc/

2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/45634
* tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
of string folding is of integral type.

gcc/testsuite/

2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/45634
* gfortran.fortran-torture/compile/pr45634.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164183 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/compile/pr45634.f90 [new file with mode: 0644]
gcc/tree-ssa-ccp.c