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

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

https://gcc.gnu.org/g:dd1537924e18e87a44abbd4063de89f7b48c60d5

commit r8-10744-gdd1537924e18e87a44abbd4063de89f7b48c60d5
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