https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122709
Bug ID: 122709
Summary: Wrong error "Assignment to contiguous pointer from
non-contiguous target" with -Wextra
Product: gcc
Version: 15.2.1
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 62821
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62821&action=edit
Testcase select_contiguous.F90
The attached small example gives error message
"Assignment to contiguous pointer from non-contiguous target"
when compiled with gfortran -Wextra select_contiguous.F90.
Without -Wextra, everything looks fine, printed line is
is contiguous: T T T
as expected.