2017-11-05 Paul Thomas <pault@gcc.gnu.org>
commitcc5943136ccb41123914dc4055d3c5e4c7eb0865
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Nov 2017 12:38:42 +0000 (5 12:38 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Nov 2017 12:38:42 +0000 (5 12:38 +0000)
tree428d69f0ccf3b22d6da4975c720054a5586d124f
parent1784439f1250a61225d4577050fe4df312ae84cd
2017-11-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/81447
PR fortran/82783
* resolve.c (resolve_component): There is no need to resolve
the components of a use associated vtype.
(resolve_fl_derived): Unconditionally generate a vtable for any
module derived type, as long as the standard is F2003 or later
and it is not a vtype or a PDT template.

2017-11-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/81447
* gfortran.dg/class_65.f90: New test.
* gfortran.dg/alloc_comp_basics_1.f90: Increase builtin_free
count from 18 to 21.
* gfortran.dg/allocatable_scalar_9.f90: Increase builtin_free
count from 32 to 54.
* gfortran.dg/auto_dealloc_1.f90: Increase builtin_free
count from 4 to 10.
* gfortran.dg/coarray_lib_realloc_1.f90: Increase builtin_free
count from 3 to 6. Likewise _gfortran_caf_deregister from 2 to
3, builtin_malloc from 1 to 4 and builtin_memcpy|= MEM from
2 to 5.
* gfortran.dg/finalize_28.f90: Increase builtin_free
count from 3 to 6.
* gfortran.dg/move_alloc_15.f90: Increase builtin_free and
builtin_malloc counts from 11 to 14.
* gfortran.dg/typebound_proc_27.f03: Increase builtin_free
count from 7 to 10. Likewise builtin_malloc from 12 to 15.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254427 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/alloc_comp_basics_1.f90
gcc/testsuite/gfortran.dg/allocatable_scalar_9.f90
gcc/testsuite/gfortran.dg/auto_dealloc_1.f90
gcc/testsuite/gfortran.dg/class_65.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coarray_lib_realloc_1.f90
gcc/testsuite/gfortran.dg/finalize_28.f90
gcc/testsuite/gfortran.dg/move_alloc_15.f90
gcc/testsuite/gfortran.dg/typebound_proc_27.f03