re PR fortran/61767 ([OOP] ICE in generate_finalization_wrapper at fortran/class...
authorJanus Weil <janus@gcc.gnu.org>
Fri, 9 Dec 2016 13:21:44 +0000 (14:21 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Fri, 9 Dec 2016 13:21:44 +0000 (14:21 +0100)
commitcdeb16cbf2c388432fa4672d37d87ee55878de13
tree8a5afc874e5edc2be1ea501e48bda1f67620b5e8
parentffaf9305aa0f0d4a4cc6cc8afa5444b94b2b67a0
re PR fortran/61767 ([OOP] ICE in generate_finalization_wrapper at fortran/class.c:1491)

2016-12-09  Janus Weil  <janus@gcc.gnu.org>

PR fortran/61767
* class.c (has_finalizer_component): Fix this function to detect only
non-pointer non-allocatable components which have a finalizer.

2016-12-09  Janus Weil  <janus@gcc.gnu.org>

PR fortran/61767
* gfortran.dg/finalize_31.f90: New test.

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