[patch, fortran] Error for non-contiguous pointers

Thomas Koenig tkoenig@netcologne.de
Tue Oct 3 18:35:00 GMT 2017


Hello world,

I have re-thought and simplified the patch for PR49232.
This now uses gfc_is_simply_contiguous, in the
non-strict version.  I have also opted for an error
because, well, the use cases rejected by this are really
errors, and will very likely lead to wrong code in
user applications.

Regression-tested. OK for trunk?

	Thomas

2017-10-03  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/49232
         * expr.c (gfc_check_pointer_assign): Error
         for non-contiguous rhs.

2017-10-03  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/49232
         * gfortran.dg/contiguous_4.f90: New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: p7.diff
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20171003/dc3d4193/attachment.bin>


More information about the Gcc-patches mailing list