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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
                 CC|                            |janus at gcc dot gnu.org
            Summary|Fortran 2003 - Type Bound   |[OOP] Fortran 2003 - Type
                   |Procedure Error - Type      |Bound Procedure Error -
                   |Mismatch                    |Type Mismatch

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-09-29 
16:17:30 UTC ---
The problem is that the name of the module procedure is the same for both TBP;
that's valid but seemingly does not work.

Variant A: Without use-associating the ambiguous "sizeReturn" the program
works:
   use A, only: a_type
   use B, only: b_type

Variant B: Only importing one of the "sizeReturn" also works:
   use A, only: a_type
   use B, only: b_type, sizeReturn
or
   use A, only: a_type
   use B

However, using just
   use A
   use B
or even
   use A, only: a_type, sizeReturn
   use B, only: b_type, sizeReturn
does not. (This use associates both "sizeReturn", which is valid as long as one
does use "sizeReturn"; if one would use the symbol, it's an error as the symbol
is ambiguous.)

Reply via email to