This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/51791] [OOP] Failure to resolve typebound function call with base object in parentheses.


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51791

--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> 2012-01-09 20:26:05 UTC ---
Author: pault
Date: Mon Jan  9 20:25:55 2012
New Revision: 183032

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183032
Log:
2012-01-09  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/51791
    * interface.c (matching_typebound_op): Drill down through
    possible parentheses to obtain base expression. Do not test for
    'class_ok' but, instead for the class structure components.
    * resolve.c (resolve_ordinary_assign): Extend error message for
    polymorphic assignment to advise checking for specific
    subroutine.

    PR fortran/51792
    * resolve.c (resolve_typebound_function): Restore 'static' to
    declaration.

2012-01-09  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/51791
    * gfortran.dg/typebound_operator_7.f03: Insert parentheses
    around base object in first assignment in main program.
    * gfortran.dg/typebound_operator_10.f03: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/typebound_operator_10.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/interface.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/typebound_operator_7.f03


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]