re PR fortran/58916 ([F03] Allocation of scalar with array source not rejected)
authorJanus Weil <janus@gcc.gnu.org>
Wed, 11 Dec 2013 14:02:44 +0000 (15:02 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Wed, 11 Dec 2013 14:02:44 +0000 (15:02 +0100)
commit2ccd6f727633d25730154efd7094900d24bf6544
treec0ae5953e27191ad205564695b6a54f67b48e833
parenteaf4967a9dd17c8b800c7981ccdac62be6a960f2
re PR fortran/58916 ([F03] Allocation of scalar with array source not rejected)

2013-12-11  Janus Weil  <janus@gcc.gnu.org>

PR fortran/58916
* resolve.c (conformable_arrays): Treat scalar 'e2'.
(resolve_allocate_expr): Check rank also for unlimited-polymorphic
variables.

2013-12-11  Janus Weil  <janus@gcc.gnu.org>

PR fortran/58916
* gfortran.dg/allocate_with_source_4.f90: New.

From-SVN: r205894
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_with_source_4.f90 [new file with mode: 0644]