Created attachment 25980 [details]
!This code generates an internal compiler error.
type :: token
character (:) , allocatable :: string
subroutine write_token( tok )
type (token) , intent (in) :: tok
I think this bug is effectively a duplicate of PR 51075.
Deferred-length characters are unfortunately not yet supported as components in derived types.
(In reply to comment #0)
> !This code generates an internal compiler error.
That has been meanwhile fixed by printing a not-yet-implemented error when allocatable string in components of derived types are used.
The implementation is tracked in PR 51976
*** This bug has been marked as a duplicate of bug 51976 ***