https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100132
Bug ID: 100132
Summary: Optimization breaks pointer association
Product: gcc
Version: 11.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 50622
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50622&action=edit
Fortran code showing problem
Hi All!
Pointer association is lost when compiling with -O1 or -O2, curiously not with
-O3 unless -fcheck=recursion is used
Seen on:
GNU Fortran (GCC) 11.0.1 20210417 (experimental)
GNU Fortran (GCC) 10.3.1 20210417
GNU Fortran (GCC) 9.3.1 20210417
Thank you very much.
Best regards,
José Rui