https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264
--- Comment #5 from anlauf at gcc dot gnu.org --- (In reply to Vladimir Terzi from comment #4) > (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). Please show the exact failing code.