This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18108] [gfortran] overloading does not work for functions
- From: "c dot lemmen at fz-juelich dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2005 08:57:21 -0000
- Subject: [Bug fortran/18108] [gfortran] overloading does not work for functions
- References: <20041022084631.18108.martin@mpa-garching.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From c dot lemmen at fz-juelich dot de 2005-06-08 08:57 -------
> > 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))]]
>
Does this mean that calling twice is a verified workaround solution? Should I
have confidence in the results of this workaround?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18108