]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/47348 (wrong string length with array constructor)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 13 Mar 2011 17:37:43 +0000 (17:37 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 13 Mar 2011 17:37:43 +0000 (17:37 +0000)
commitb314e806c89cdcd06d4ea47c49414e346fa380fa
treebfd33562780c11a8c3db33943de18ebe6c329ba8
parent8f58be06e6aadbb2ad065f8a5a71f793c80464b3
re PR fortran/47348 (wrong string length with array constructor)

2011-03-13  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-03-13  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: r170923
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_36.f90 [new file with mode: 0644]