re PR fortran/62044 (ICE in USE statement with RENAME for extended derived type)
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 26 Jan 2015 21:58:42 +0000 (21:58 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 26 Jan 2015 21:58:42 +0000 (21:58 +0000)
commit40a778bd519125d4385bc155d9ae6e6e04d703c3
treeee654adf268670eddd69d015f6fba4df4f5f882f
parent1b7706c830cdf535d14d68d4f2e581592fbcdb85
re PR fortran/62044 (ICE in USE statement with RENAME for extended derived type)

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

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