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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Mark Eggleston
<markeggles...@gcc.gnu.org>:

https://gcc.gnu.org/g:06119d691e27e25fd4f4486467ad95f7b545fde3

commit r10-6703-g06119d691e27e25fd4f4486467ad95f7b545fde3
Author: Mark Eggleston <markeggles...@gcc.gnu.org>
Date:   Tue Feb 18 15:54:13 2020 +0000

    [fortran] ICE assign character pointer to non target PR93714

    An ICE occurred if an attempt was made to assign a pointer to a
    character variable that has an length incorrectly specified using
    a real constant and does not have the target attribute.

    gcc/fortran/ChangeLog

        PR fortran/93714
        * expr.c (gfc_check_pointer_assign): Move check for
        matching character length to after checking the lvalue
        attributes for target or pointer.

    gcc/testsuite/ChangeLog

        PR fortran/93714
        * gfortran.dg/char_pointer_assign_6.f90: Look for no target
        message instead of length mismatch.
        * gfortran.dg/pr93714_1.f90
        * gfortran.dg/pr93714_2.f90

Reply via email to