]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix testsuite regressions after r15-5897 [PR116261/PR117901]
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 9 Dec 2024 07:32:22 +0000 (07:32 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 9 Dec 2024 07:32:22 +0000 (07:32 +0000)
commitad94070689b3fadafca14c188c650aad6b8600e7
treeb9ca24cf3174bb98d1dab3b27b8d121c7f17224e
parentcd4daddf6c3f977469c51dac518000b16668364f
Fortran: Fix testsuite regressions after r15-5897 [PR116261/PR117901]

2024-12-09  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/116261
* trans-array.cc (gfc_array_init_size): New arg 'explicit_ts',
to suppress the use of the expr3 element size in the descriptor
dtype.
(gfc_array_allocate): New arg 'explicit_ts', used in call to
gfc_array_init_size.
* trans-array.h : Modify prototype for gfc_array_allocate for new
bool argument.
* trans-stmt.cc (gfc_trans_allocate): Set new argument if the
typespec is explicit.

gcc/testsuite/
PR fortran/117901
* gfortran.dg/class_transformational_1.f90: Temporary fix for
ICE with some compile options by setting dummy arg of
'unlimited rebar' to be allocatable.
gcc/fortran/trans-array.cc
gcc/fortran/trans-array.h
gcc/fortran/trans-stmt.cc
gcc/testsuite/gfortran.dg/class_transformational_1.f90