re PR fortran/67538 (ICE with invalid source allocation)
authorAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 4 Apr 2016 10:32:32 +0000 (12:32 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 4 Apr 2016 10:32:32 +0000 (12:32 +0200)
commit7a85da896a9ceac338801d6ad0997ef7834660cb
treeafc2fedbeca840b624e3578d2279211a44b77cb5
parentde517e644a374f7df40bf0b43254684dab717ac0
re PR fortran/67538 (ICE with invalid source allocation)

gcc/fortran/ChangeLog:

2016-04-04  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/67538
* resolve.c (resolve_allocate_expr): Emit error message when no
array spec and no array valued source= expression is given in an
F2008 allocate() for an array to allocate.

gcc/testsuite/ChangeLog:

2016-04-04  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/67538
* gfortran.dg/allocate_with_source_19.f08: New test.

From-SVN: r234714
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_with_source_19.f08 [new file with mode: 0644]