Check that result of string folding is of integral type.
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 10 Sep 2010 14:44:20 +0000 (14:44 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 10 Sep 2010 14:44:20 +0000 (07:44 -0700)
commit90966337970092f84e1029aa27376922fb24943c
tree05617c079ccaa413d47387ff2560d6ff0312a40c
parente1d9659dd302e125682c6ed7d5c613c7a1cbefdc
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.

From-SVN: r164183
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/compile/pr45634.f90 [new file with mode: 0644]
gcc/tree-ssa-ccp.c