[Bug fortran/45424] [F2008] Add IS_CONTIGUOUS intrinsic

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Apr 20 17:41:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45424

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janus at gcc dot gnu.org
            Summary|F2008: Add is_contiguous    |[F2008] Add IS_CONTIGUOUS
                   |intrinsic                   |intrinsic

--- Comment #4 from janus at gcc dot gnu.org 2013-04-20 17:41:22 UTC ---
(In reply to comment #1)
> d) The gfc_is_simply_contiguous function needs to be refined and extended - and
> a "gfc_is_simply_noncontiguous" has to be added.

Another application for 'gfc_is_simply_noncontiguous' would be to reject
invalid code like

  integer, dimension(1:5,1:5), target :: zzz
  type(c_ptr) :: ptr
  ptr = c_loc (zzz(4:,4:))

cf. http://gcc.gnu.org/ml/fortran/2013-04/msg00181.html and follow-ups.



More information about the Gcc-bugs mailing list