r280063 - in /trunk/gcc: fortran/ChangeLog fort...
tkoenig@gcc.gnu.org
tkoenig@gcc.gnu.org
Thu Jan 9 20:57:00 GMT 2020
Author: tkoenig
Date: Thu Jan 9 20:57:33 2020
New Revision: 280063
URL: https://gcc.gnu.org/viewcvs?rev=280063&root=gcc&view=rev
Log:
Save typespec for empty array constructor.
2020-01-09 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/65428
* array.c (empty_constructor): New variable.
(empty_ts): New variable.
(expand_constructor): Save typespec in empty_ts.
Unset empty_constructor if there is an element.
(gfc_expand_constructor): Initialize empty_constructor
and empty_ts. If there was no explicit constructor
type and the constructor is empty, take the type from
empty_ts.
2020-01-09 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/65428
* gfortran.dg/zero_sized_11.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/zero_sized_11.f90
trunk/gcc/testsuite/gfortran.dg/zero_sized_12.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/array.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list