re PR fortran/71623 (Segfault when allocating deferred-length characters to size...
authorAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 5 Jul 2016 12:06:22 +0000 (14:06 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 5 Jul 2016 12:06:22 +0000 (14:06 +0200)
commit69aaea0663eb3b05d0f16bd045000e54b8f109b1
treec3d4d2f2beac490ce640b791da252fa323b81e0f
parentb0ad2d78b237380c47f92a8f61e257a1e434a3fe
re PR fortran/71623 (Segfault when allocating deferred-length characters to size of a pointer)

gcc/fortran/ChangeLog:

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

PR fortran/71623
* trans-stmt.c (gfc_trans_allocate): Add code of pre block of typespec
in allocate to parent block.

gcc/testsuite/ChangeLog:

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

PR fortran/71623
* gfortran.dg/deferred_character_17.f90: New test.

From-SVN: r238002
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/deferred_character_17.f90 [new file with mode: 0644]