2015-01-26 Paul Thomas <pault@gcc.gnu.org>
commit82d867c823b9eed49dd9a42421c09f7e3c014816
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 2015 21:58:42 +0000 (26 21:58 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 2015 21:58:42 +0000 (26 21:58 +0000)
treeee654adf268670eddd69d015f6fba4df4f5f882f
parent4abdcfcbb7e7374120b6a4ded88cb7b08e08b1c4
2015-01-26  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/62044
* resolve.c (resolve_allocate_expr): If the default initializer
is NULL, keep the original MOLD expression so that the correct
typespec is available.

2015-01-26  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/62044
* gfortran.dg/allocate_with_mold_1.f90: New test

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220140 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_with_mold_1.f90 [new file with mode: 0644]