]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/array.cc
Fortran: handle expansion of zero-sized array constructors
authorHarald Anlauf <anlauf@gmx.de>
Mon, 17 Jan 2022 21:52:08 +0000 (22:52 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 18 Jan 2022 19:02:11 +0000 (20:02 +0100)
commit0d01a2722671bef37b931fd1f121e44b27e68268
tree96bb7bb0c4e74c050bdafe7d79214c97ba286054
parent7ca21601704c4a637f3cefa7c8814920782354d8
Fortran: handle expansion of zero-sized array constructors

gcc/fortran/ChangeLog:

PR fortran/103692
* array.cc (gfc_expand_constructor): Handle zero-sized array
constructors.

gcc/testsuite/ChangeLog:

PR fortran/103692
* gfortran.dg/pr102520.f90: Adjust error messages.
* gfortran.dg/pr103692.f90: New test.
gcc/fortran/array.cc
gcc/testsuite/gfortran.dg/pr102520.f90
gcc/testsuite/gfortran.dg/pr103692.f90 [new file with mode: 0644]