Can anyone explain this error?
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Dec 8 01:07:00 GMT 2009
On Mon, Dec 07, 2009 at 06:42:47PM +0100, Tobias Burnus wrote:
> On 12/07/2009 05:26 PM, Dominique Dhumieres wrote:
> > The following code (extracted from gfortran.dg/bind_c_usage_10.f03)
> > integer(c_int) function func1() bind(c, name="myFunc1")
> > real(c_float) :: func1ent
> > entry func1ent()
> > gives the following error when compiled with -fdefault-integer-8:
> >
> > Error: FUNCTION result func1 can't be of type INTEGER(4) in FUNCTION func1 at (1)
> >
> > Is this error expected? If yes, why? (don't answer that I should not use the
> > -fdefault-*-8 optionsi, I know!-).
> >
>
> Don't use ENTRY :-)
Even better. Don't use options that you don't understand. :-) :-)
--
Steve
More information about the Fortran
mailing list