]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix non_overridable typebound proc problems [PR84674/117730].
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 24 Nov 2024 08:50:58 +0000 (08:50 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 24 Nov 2024 08:50:58 +0000 (08:50 +0000)
commitdd6dbbb5111fba960ad0ee7999a225783e0ae80e
tree4859fa586938a82e1b43bd56c372f5419baf3278
parentbbe9ff74c86904e1e6be81aa099b6298e386fc9f
Fortran: Fix non_overridable typebound proc problems [PR84674/117730].

2024-11-24  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran/ChangeLog

PR fortran/117730
* class.cc (add_proc_comp): Only reject a non_overridable if it
has no overridden procedure and the component is already
present in the vtype.
PR fortran/84674
* resolve.cc (resolve_fl_derived): Do not build a vtable for a
derived type extension that is completely empty.

gcc/testsuite/ChangeLog

PR fortran/117730
* gfortran.dg/pr117730_a.f90: New test.
* gfortran.dg/pr117730_b.f90: New test.

PR fortran/84674
* gfortran.dg/pr84674.f90: New test.
gcc/fortran/class.cc
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr117730_a.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr117730_b.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr84674.f90 [new file with mode: 0644]