[Bug fortran/121628] Use-after-free in compiler-generated assignment operators
albert at tugraz dot at
gcc-bugzilla@gcc.gnu.org
Thu Nov 6 22:54:06 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121628
--- Comment #20 from Christopher Albert <albert at tugraz dot at> ---
(In reply to Jerry DeLisle from comment #18)
> Christipher, since I pushed before seeing Haralds glitch can you post a
> patch here for:
>
> program minimal_bug
> implicit none
>
> type :: nested_t
> type(nested_t), allocatable :: children(:)
> type(nested_t), allocatable :: relatives(:)
> end type nested_t
>
> type(nested_t) :: a
>
> end
>
> Which gives an ICE
Thanks Jerry, I couldn't believe how fast this was merged, so I see this
positive. I posted a patch here that should provide a fix together with
Harald's comments. Test suite is still finishing run, but it looks good so far.
Can you check if you agree with this solution?
More information about the Gcc-bugs
mailing list