https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105543
Bug ID: 105543 Summary: Function returning a class array with contiguous attribute rejected Product: gcc Version: 12.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 52947 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52947&action=edit func_contiguous.f90 The attached code, compiled with "gfortran func_contiguous.f90 -c", fails with the error message func_contiguous.f90:8:0: 8 | function create() result(x) | Error: ‘create’ at (1) has the CONTIGUOUS attribute but is not an array pointer or an assumed-shape or assumed-rank array.