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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Harald Anlauf
<anl...@gcc.gnu.org>:

https://gcc.gnu.org/g:2d9597f400e3456240e4499c9a9bc7023380247f

commit r9-9209-g2d9597f400e3456240e4499c9a9bc7023380247f
Author: Harald Anlauf <anl...@gmx.de>
Date:   Thu Jan 28 10:13:46 2021 +0100

    PR fortran/86470 - ICE with OpenMP, class(*) allocatable

    gfc_call_malloc should malloc an area of size 1 if no size given.

    gcc/fortran/ChangeLog:

            PR fortran/86470
            * trans.c (gfc_call_malloc): Allocate area of size 1 if passed
            size is NULL (as documented).

    gcc/testsuite/ChangeLog:

            PR fortran/86470
            * gfortran.dg/gomp/pr86470.f90: New test.

    (cherry picked from commit 33a7a93218b1393d0135e3c4a9ad9ced87808f5e)

Reply via email to