[Bug fortran/52774] Derived-type assignment: check required to prevent double deallocation of allocatable component
"jvdelisle at gcc dot gnu.org via Gcc-bugs" <[email protected]> Tue, 04 Aug 2026 19:25:02 +0000
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52774
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
I started work on this one. I wonder if we should give a warning about the rhs
rededfining the lhs in these test cases. I am reading in both the 2018 and 2023
drafts:
10.1.4.2, second bullet.
- if a function reference causes definition or undefinition of an actual
argument of the function, that argument or any associated entities shall not
appear elsewhere in the same statement.
I dont think it applies here, but I am not 100% certain of it.