https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122977
Bug ID: 122977
Summary: Wrongly rejects associate to a contiguous pointer
Product: gcc
Version: 15.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: sebastien at debian dot org
Target Milestone: ---
Created attachment 62979
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62979&action=edit
Test case
gcc 15.2.0-9 and 15.2.0-10 from Debian (respectively corresponding to commits
de19b864549 and 29ef8ea6416) wrongly rejects the attached program with the
message:
bug-gfortran-15.f08:4:19:
4 | associate (b => a)
| 1
Error: ‘b’ at (1) has the CONTIGUOUS attribute but is not an array pointer or
an assumed-shape or assumed-rank array
Note that this problem does not happen with gcc 15.2.0-8 from Debian
(corresponding to commit ac34de574fe).
I suppose the faulty commit is 60db9b6a0a.