https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115700

--- Comment #14 from anlauf at gcc dot gnu.org ---
(In reply to GCC Commits from comment #13)
> The master branch has been updated by Paul Thomas <pa...@gcc.gnu.org>:
> 
> https://gcc.gnu.org/g:7f93910a8b5d606ad742a3594750f0c2b20d8bda
> 
> commit r15-4835-g7f93910a8b5d606ad742a3594750f0c2b20d8bda
> Author: Paul Thomas <pa...@gcc.gnu.org>
> Date:   Fri Nov 1 07:45:00 2024 +0000
> 
>     Fortran: Fix problems with substring selectors in ASSOCIATE [PR115700]
>     
>     2024-11-01  Paul Thomas  <pa...@gcc.gnu.org>
>     
>     gcc/fortran
>             PR fortran/115700
>             * resolve.cc (resolve_assoc_var): Extract a substring reference
>             with missing as well as non-constant start or end.
>     
>     gcc/testsuite/
>             PR fortran/115700
>             * gfortran.dg/associate_69.f90: Activate commented out tests.
>             * gfortran.dg/associate_70.f90: Test correct functioning of
>             references in associate_69.f90 tests.

Paul,

the addition to testcase gfortran.dg/associate_69.f90 fails on 32-bit targets
(or using -m32), which can be seen by comparing the dumps: for -m32 the final
"stop 6" gets optimized away already at -Og, but not at -m64.  So the pattern
needs to be reconsidered.

Can you have a look?

Reply via email to