https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94020
Bug ID: 94020 Summary: Size, shape, possibly other intrinsics non standard conforming Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jrfsousa at gmail dot com Target Milestone: --- Created attachment 47960 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47960&action=edit Code demonstrating problems. Hi all! The size, the shape and likely many other intrinsics to depend on the macro GFC_DESCRIPTOR_EXTENT will return spurious values for assumed-size arrays with negative lower bounds. At least size and shape will never return negative values required when dealing with assumed-size arrays. Seen in: GNU Fortran (GCC) 9.2.1 20200303 GNU Fortran (GCC) 10.0.1 20200303 (experimental) IMHO before even attempting to fix the problems it is essential that some clear official policy is agreed upon in order to define the protocol to be used to signal assumed-size and zero sized arrays. Thank you very much. Best regards, José Rui