https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105800
--- Comment #1 from martin <mscfd at gmx dot net> --- Created attachment 54856 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54856&action=edit fixed testcase class_dealloc.f90 As I just see, the first attachment does not show the bug as return value "a" of function create is declared as "class(t), dimension(:), pointer". And as described in the initial report, with class instead of type, there is no error. The fixed attachment declares "a" as "type(t), dimension(:), pointer". This shows the described error. It is still present in the current 13 development branch.