https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108010
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:767d85d69f3d3f718f2a294f8e03be3a8aa65c4b commit r12-9466-g767d85d69f3d3f718f2a294f8e03be3a8aa65c4b Author: Harald Anlauf <anl...@gmx.de> Date: Wed Dec 7 21:50:23 2022 +0100 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)