[Bug fortran/115700] [11/12/13/14 regression] Bogus warning for associate with assumed-length character array
pault at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 2 10:14:50 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115700
--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to anlauf from comment #2)
> Created attachment 58553 [details]
> Draft patch
>
> Very hackish patch that sets the character length of the selector at the
> beginning of the associate block if the target is a variable and thus is
> known in advance.
>
> Not sure if this is the right approach, but it fixes the testcase.
It looks OK to me.
Cheers
Paul
More information about the Gcc-bugs
mailing list