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

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

https://gcc.gnu.org/g:0f42bb8722204fb83dcd001cc4254ad25b969402

commit r10-9308-g0f42bb8722204fb83dcd001cc4254ad25b969402
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