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

            Bug ID: 86830
           Summary: Contiguous array pointer function result not
                    recognized as contiguous
           Product: gcc
           Version: 8.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: only_for_nouse at gmx dot de
  Target Milestone: ---

Created attachment 44490
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44490&action=edit
REproducer of the error

Compiling the attached code given the error:
   loc_g => petsc_o%g_dv%get_ptr()
           1
Error: Assignment to contiguous pointer from non-contiguous target at (1)

although the get_ptr function of the dist_func_t datatype returns a contiguous
pointer. 

Remark: Using a polymorphic variable petsc_o instead of a static type, the
error does not occur. The same is true if one omits one level of nesting of
types.

Reply via email to