[PATCH] Fortran: fix variable definition context checks for SELECT TYPE [PR123253]

Harald Anlauf anlauf@gmx.de
Mon Dec 22 20:19:39 GMT 2025


Dear All,

my fix for pr71565 introduced a regression for variable definition
context checks when the selector was not a dummy variable.
The reason was that I attempted to prevent a false-negative
for one of the tests in the testcase in a too naive way while
not fully walking through an association list.  The attached
patch remedies that.

Regtested on x86_64-pc-linux-gnu.  OK for mainline?

Thanks,
Harald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr123253.diff
Type: text/x-patch
Size: 6376 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20251222/09e886dd/attachment-0002.bin>


More information about the Fortran mailing list