diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2024-04-02 14:19:09 +0100 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2024-04-02 14:19:09 +0100 |
commit | 35408b3669fac104cd380582b32e32c64a603d8b (patch) | |
tree | 28a98e943fc5108c8b16c881ae1ff5fe18bd1d7f /libgcc | |
parent | 9a5e4aade2b847c5262577a1490ce6f3df9a9841 (diff) | |
download | gcc-35408b3669fac104cd380582b32e32c64a603d8b.zip gcc-35408b3669fac104cd380582b32e32c64a603d8b.tar.gz gcc-35408b3669fac104cd380582b32e32c64a603d8b.tar.bz2 |
Fortran: Fix wrong recursive errors and class initialization [PR112407]
2024-04-02 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/112407
* resolve.cc (resolve_procedure_expression): Change the test for
for recursion in the case of hidden procedures from modules.
(resolve_typebound_static): Add warning for possible recursive
calls to typebound procedures.
* trans-expr.cc (gfc_trans_class_init_assign): Do not apply
default initializer to class dummy where component initializers
are all null.
gcc/testsuite/
PR fortran/112407
* gfortran.dg/pr112407a.f90: New test.
* gfortran.dg/pr112407b.f90: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions