Created attachment 25980 [details] Terminal i/o !This code generates an internal compiler error. module tokens implicit none type :: token character (:) , allocatable :: string end type contains subroutine write_token( tok ) implicit none type (token) , intent (in) :: tok end subroutine end module
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 ***