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/18108] [gfortran] overloading does not work for functions


------- Additional Comments From tobi at gcc dot gnu dot org  2004-11-30 15:21 -------
(In reply to comment #2)
> Surprisingly (to me), adding a second call to the function resolves the problem,
> i.e. in the examples below the following code works
> 
> subroutine baz
>   logical l
>   l = bar (3)
>   l = bar (3)   ! alternatively, call l=bar(3.0)
> end subroutine
> 
I verified that it actually calls the right routine under these circumstances.
>From the compiler output with -fump-parse-tree:
      ASSIGN l bar_real[[((3.0000000))]]
      ASSIGN l bar_real[[((3.0000000))]]

Weird.
> Commenting out either of the calls to bar results in the code rejection



-- 


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


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