https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94022
Bug ID: 94022
Summary: Array slices of assumed-size arrays
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 47963
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47963&action=edit
Code demonstrating problems.
Hi all!
When passing array slices of assumed-size arrays the upper bound of the slice
gets rewritten to mark the array as assumed-size.
I believe that this behavior is incorrect and array slices are explicit shape
arrays.
OpenMP seems to rely on this behavior.
Seen in:
GNU Fortran (GCC) 9.2.1 20200303
GNU Fortran (GCC) 10.0.1 20200303 (experimental)
Thank you very much.
Best regards,
José Rui