re PR fortran/79311 ([OOP] ICE in generate_finalization_wrapper, at fortran/class...
authorJanus Weil <janus@gcc.gnu.org>
Tue, 9 May 2017 20:55:38 +0000 (22:55 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Tue, 9 May 2017 20:55:38 +0000 (22:55 +0200)
commit5285d5d3574ac90b8c14ac05ad205d2b4af30090
tree0b4c85fc8bc7d394a320073f2800035e739f026d
parentc0aad6778c5c5c9bf262b89edb91655a1df7da0e
re PR fortran/79311 ([OOP] ICE in generate_finalization_wrapper, at fortran/class.c:1992)

2017-05-09  Janus Weil  <janus@gcc.gnu.org>

PR fortran/79311
* resolve.c (gfc_resolve_finalizers): Ensure that derived-type
components have a their finalizers resolved, also if the superordinate
type itself has a finalizer.

2017-05-09  Janus Weil  <janus@gcc.gnu.org>

PR fortran/79311
* gfortran.dg/finalize_32.f90: New test.

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