diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2010-06-06 02:04:04 +0000 |
---|---|---|
committer | Janus Weil <janus@gcc.gnu.org> | 2010-06-06 04:04:04 +0200 |
commit | 15d774f9afd33dc7aa8416287042c4505a51125e (patch) | |
tree | 3ac06ccabe555ccafd68cc9dee3337b2822206ed /gcc/tree.c | |
parent | be69e91b791430f1263c2817b250207e7768b74a (diff) | |
download | gcc-15d774f9afd33dc7aa8416287042c4505a51125e.zip gcc-15d774f9afd33dc7aa8416287042c4505a51125e.tar.gz gcc-15d774f9afd33dc7aa8416287042c4505a51125e.tar.bz2 |
re PR fortran/43945 ([OOP] Derived type with GENERIC: resolved to the wrong specific TBP)
2010-06-05 Paul Thomas <pault@gcc.gnu.org>
Janus Weil <janus@gcc.gnu.org>
PR fortran/43945
* resolve.c (get_declared_from_expr): Move to before
resolve_typebound_generic_call. Make new_ref and class_ref
ignorable if set to NULL.
(resolve_typebound_generic_call): Once we have resolved the
generic call, check that the specific instance is that which
is bound to the declared type.
(resolve_typebound_function,resolve_typebound_subroutine): Avoid
freeing 'class_ref->next' twice.
2010-06-05 Paul Thomas <pault@gcc.gnu.org>
PR fortran/43945
* gfortran.dg/generic_23.f03: New test.
Co-Authored-By: Janus Weil <janus@gcc.gnu.org>
From-SVN: r160335
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions