[PATCH] Fortran: handle zero-sized arrays in ctors with typespec [PR108010]

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Dec 7 21:50:54 GMT 2022


On Wed, Dec 07, 2022 at 09:57:20PM +0100, Harald Anlauf via Fortran wrote:
> Dear all,
> 
> we need to be careful about zero-sized arrays in arithmetic
> reductions (unary & binary), as we otherwise may hit a NULL
> pointer dereference on valid code.
> 
> The actual fix is straightforward, see attached patch.
> 
> Regtested on x86_64-pc-linux-gnu.  OK for mainline?
> 

Yes.  Thanks for the patch.

-- 
Steve


More information about the Fortran mailing list