]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/43256 ([OOP] TBP with missing optional arg)
authorJanus Weil <janus@gcc.gnu.org>
Mon, 8 Mar 2010 09:35:04 +0000 (10:35 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Mon, 8 Mar 2010 09:35:04 +0000 (10:35 +0100)
commitb3d286bac21f41e1680e2f364e0733c8ebf2c9ad
treeeaa65acb0a14fd9bdf95330dcf09127481313e87
parent196c8bc8a319d0be3018c66339e00985857bd627
re PR fortran/43256 ([OOP] TBP with missing optional arg)

2010-03-08  Janus Weil  <janus@gcc.gnu.org>

PR fortran/43256
* resolve.c (resolve_compcall): Don't set 'value.function.name' here
for TBPs, otherwise they will not be resolved properly.
(resolve_function): Use 'value.function.esym' instead of
        'value.function.name' to check if we're dealing with a TBP.
(check_class_members): Set correct type of passed object for all TBPs,
not only generic ones, except if the type is abstract.

2010-03-08  Janus Weil  <janus@gcc.gnu.org>

PR fortran/43256
* gfortran.dg/typebound_call_13.f03: New.

From-SVN: r157272
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/typebound_call_13.f03 [new file with mode: 0644]