[Bug fortran/88748] New: IS_CONTIGUOUS mishandles arrays of derived type components

anlauf at gmx dot de gcc-bugzilla@gcc.gnu.org
Mon Jan 7 21:34:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88748

            Bug ID: 88748
           Summary: IS_CONTIGUOUS mishandles arrays of derived type
                    components
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anlauf at gmx dot de
  Target Milestone: ---

The patch committed to fix to PR 45424 does not handle the examples given
there in comment 1:

type t
  integer :: i, j
end type t
type(t) :: x(5)
print *, is_contiguous(x(:))   ! Shall be (and is) true
print *, is_contiguous(x(:)%i) ! Shall be false - but prints "true".
end

gfortran rev. 267658 prints:

 T
 T

while Intel v15 (and later) and NAG 6.2 print:

 T
 F

(Note to self: need to check PR 45424 comment 2).


More information about the Gcc-bugs mailing list