]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: handle zero-sized arrays in ctors with typespec [PR108010]
authorHarald Anlauf <anlauf@gmx.de>
Wed, 7 Dec 2022 20:50:23 +0000 (21:50 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 23 Apr 2023 18:29:48 +0000 (20:29 +0200)
commit767d85d69f3d3f718f2a294f8e03be3a8aa65c4b
treeee472751efaac6b5f8ee78b10d84071eb242e4f2
parent928374f8d5160b229702fa5e6016d72943915578
Fortran: handle zero-sized arrays in ctors with typespec [PR108010]

gcc/fortran/ChangeLog:

PR fortran/108010
* arith.cc (reduce_unary): Handle zero-sized arrays.
(reduce_binary_aa): Likewise.

gcc/testsuite/ChangeLog:

PR fortran/108010
* gfortran.dg/pr108010.f90: New test.

(cherry picked from commit 7d6512d102a5a4fb3939de95bce38d154512a19f)
gcc/fortran/arith.cc
gcc/testsuite/gfortran.dg/pr108010.f90 [new file with mode: 0644]