re PR fortran/64230 (Invalid memory reference in a compiler-generated finalizer for...
authorJanus Weil <janus@gcc.gnu.org>
Mon, 26 Jan 2015 15:56:03 +0000 (16:56 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Mon, 26 Jan 2015 15:56:03 +0000 (16:56 +0100)
commit807b50a72bcaaa2ded0af983a055465621204b13
tree1c48457ac5f8e61ec073116fae1bdfbb0a887391
parent2748ffd373cc9093e24dcb41d6648a6605e27b14
re PR fortran/64230 (Invalid memory reference in a compiler-generated finalizer for allocatable component)

2015-01-26  Janus Weil  <janus@gcc.gnu.org>

PR fortran/64230
* class.c (finalize_component): New argument 'sub_ns'. Insert code to
check if 'expr' is associated.
(generate_finalization_wrapper): Rename 'ptr' symbols to 'ptr1' and
'ptr2'. Pass 'sub_ns' to finalize_component.

2015-01-26  Janus Weil  <janus@gcc.gnu.org>

PR fortran/64230
* gfortran.dg/class_allocate_18.f90: New.

From-SVN: r220125
gcc/fortran/ChangeLog
gcc/fortran/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_allocate_18.f90 [new file with mode: 0644]