[Bug fortran/126659] ASSOCIATE with array slice fails to create a temporary, causing wrong results when passed to explicit-shape dummy argument

varunshah1801 at gmail dot com via Gcc-bugs <[email protected]> Thu, 06 Aug 2026 09:13:44 +0000
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126659

--- Comment #2 from Varun Shah <varunshah1801 at gmail dot com> ---
(In reply to Steve Kargl from comment #1)
> (In reply to Varun Shah from comment #0) 
> Works for me with gfortan 15.3.1, 16.1.1, and 17.0.0.


Dear Steve, 
I can confirm that the issue is resolved in version 16.1.1
I cannot easily check for 15.3.1 or 17.0.0.
Many thanks