https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100961
Bug ID: 100961 Summary: Intrinsic function as value to a class(*) assumed rank argument fails Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mscfd at gmx dot net Target Milestone: --- Created attachment 50961 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50961&action=edit test case Providing the value of an intrinsic function to a subroutine with an class(*) assumed rank argument fails. The correct rank is not recognised. Encapsulating the intrinsic function invocation in parenthesis avoids the bug.