This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] Realloc on assignment: Allocate at least a byte
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Fri, 21 Jun 2013 21:12:26 +0200
- Subject: Re: [Patch, Fortran] Realloc on assignment: Allocate at least a byte
- References: <51C46DD8 dot 2010206 at net-b dot de>
Le 21/06/2013 17:14, Tobias Burnus a écrit :
> In order to ensure that "ALLOCATED(var)" works, we have to allocate at
> least one byte. While malloc(0) is permitted, it is system depended
> whether it returns NULL or a unique non-NULL pointer.
>
> Build and regtested on x86-64-gnu-linux.
> OK for the trunk?
>
Sure.
Mikael