re PR fortran/60357 ([F08] structure constructor with unspecified values for allocata...
authorJanus Weil <janus@gcc.gnu.org>
Mon, 29 Dec 2014 10:45:21 +0000 (11:45 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Mon, 29 Dec 2014 10:45:21 +0000 (11:45 +0100)
commit7430df9766d0706da1dc969d7aae9a6c9ed367d8
tree09c521ceb79d4e0937eba0cc70142b17b77d1255
parent8cd2f58d8422616e32e236f1eb4301ccfbea69c0
re PR fortran/60357 ([F08] structure constructor with unspecified values for allocatable components)

2014-12-29  Janus Weil  <janus@gcc.gnu.org>

PR fortran/60357
* array.c (check_constructor): Ignore empty expressions.
* expr.c (check_alloc_comp_init): Check if constructor expression
exists.
* primary.c (build_actual_constructor): Warn for absent alloc-comp
initializers in pre-2008 standards.

2014-12-29  Janus Weil  <janus@gcc.gnu.org>

PR fortran/60357
* gfortran.dg/alloc_comp_constructor_7.f90: New.

From-SVN: r219098
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/expr.c
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/alloc_comp_constructor_7.f90 [new file with mode: 0644]