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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

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

--- Comment #16 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Also (commit with wrong PR number, unfortunately).

Fixed on all open branches, closing.

Author: tkoenig
Date: Sun Feb 10 18:30:01 2019
New Revision: 268750

URL: https://gcc.gnu.org/viewcvs?rev=268750&root=gcc&view=rev
Log:
2019-02-10  Thomas Koenig  <tkoe...@gcc.gnu.org>

        PR fortran/71237
        Backport from trunk
        * expr.c (gfc_check_assign): Add argument is_init_expr.  If we are
        looking at an init expression, issue error if the target is not a
        TARGET and we are not looking at a procedure pointer.
        * gfortran.h (gfc_check_assign): Add optional argument
        is_init_expr.

2019-02-10  Thomas Koenig  <tkoe...@gcc.gnu.org>

        PR fortran/71237
        Backport from trunk
        * gfortran.dg/pointer_init_2.f90: Adjust error messages.
        * gfortran.dg/pointer_init_6.f90: Likewise.
        * gfortran.dg/pointer_init_9.f90: New test.


Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pointer_init_9.f90
Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/expr.c
    branches/gcc-8-branch/gcc/fortran/gfortran.h
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pointer_init_2.f90
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pointer_init_6.f90

Reply via email to