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

--- Comment #2 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:23d3f25c87d307536f7e0f15e211968a87657602

commit r10-6701-g23d3f25c87d307536f7e0f15e211968a87657602
Author: Mark Eggleston <markeggles...@gcc.gnu.org>
Date:   Tue Feb 18 14:15:41 2020 +0000

    [Fortran] ICE: Invalid expression in gfc_element_size PR93601

    ICE occurs when assigning a BOZ constant to an class(*) variable
    with the allocatable attribute. Use of BOZ constants outside
    data statements and int/real/dble/cmplx intrinsics is not allowed.

    Original patch provided by Steven G. Kargl  <ka...@gcc.gnu.org>.

    gcc/fortran/ChangeLog

        PR fortran/93601
        * match.c (gfc_match_assignment) : Reject assignment if
        the lhs stype is BT_CLASS and the rhs type is BT_BOZ.

    gcc/testsuite/ChangeLog

        PR fortran/93601
        * gfortran.dg/pr93601.f90 : New test.

Reply via email to