re PR fortran/47348 (wrong string length with array constructor)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 19 Feb 2011 15:03:27 +0000 (15:03 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 19 Feb 2011 15:03:27 +0000 (15:03 +0000)
commit6c1b5781b4e65ac22a1b176609f548c42f2418b8
treee9d23bf03eee0cad9d9e990d7523934bf76c250e
parent27f98305d72a39edb648da5b7a891bee29a04f86
re PR fortran/47348 (wrong string length with array constructor)

2011-02-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47348
* trans-array.c (get_array_ctor_all_strlen): Move up in file.
(get_array_ctor_var_strlen): Add block dummy and add call to
get_array_ctor_all_strlen instead of giving up on substrings.
Call gcc_unreachable for default case.
(get_array_ctor_strlen): Add extra argument to in call to
get_array_ctor_var_strlen.

2011-02-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47348
* gfortran.dg/array_constructor_36.f90 : New test.
* gfortran.dg/bounds_check_10.f90 : Change dg-output message to
allow for comparison between different elements of the array
constructor at different levels of optimization.

From-SVN: r170317
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_36.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bounds_check_10.f90