[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug fortran/97242] Pointer assignment: Noncontiguous target to contiguous pointer wrongly accepted.
From:       "burnus at gcc dot gnu.org via Gcc-bugs" <gcc-bugs () gcc ! gnu ! org>
Date:       2020-09-30 13:14:08
Message-ID: bug-97242-4-Re8th2Hs8k () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
FIXED – but the git-hook script did not add the commit :-(

r11-3556-g65167982efa4dbb96698d026e6d7e17acb513f0a
commit 65167982efa4dbb96698d026e6d7e17acb513f0a
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Wed Sep 30 15:01:13 2020 +0200

    Fortran: add contiguous check for ptr assignment, fix non-contig check
(PR97242)

    gcc/fortran/ChangeLog:

            PR fortran/97242
            * expr.c (gfc_is_not_contiguous): Fix check.
            (gfc_check_pointer_assign): Use it.

    gcc/testsuite/ChangeLog:

            PR fortran/97242
            * gfortran.dg/contiguous_11.f90: New test.
            * gfortran.dg/contiguous_4.f90: Update.
            * gfortran.dg/contiguous_7.f90: Update.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic