https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264
--- Comment #4 from Vladimir Terzi <vterzi1996 at gmail dot com> --- (In reply to kargls from comment #3) > Works for me with 13.2.0, 14.2.0, and top of tree on x86_64-*-freebsd. > > You can also do the allocation explicitly instead of allocation > on assignment. > > function f() > class(t), allocatable :: f > allocate(tt :: f) > end That's strange... For some reason, the behavior is different on Rocky Linux 8.7 (same architecture: x86_64). Yes, I'm using the explicit allocation in my code with `source` (and a constructor with arguments).