https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94788
--- Comment #34 from Jürgen Reuter <juergen.reuter at desy dot de> --- Created attachment 48411 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48411&action=edit Final reproducer, less than 300 lines ;) This one should be sufficient. No further files or input is necessary, it seems that the problem lies in the combination of inheriting derived types, allocatables and pointers. All the fun.