egcs-1.1.1: g77: -pedantic

Craig Burley burley@gnu.org
Tue Dec 15 00:54:00 GMT 1998


>      i=f1()
[...]
>      integer function f1()
>      f1=20
>      return
>      end
>---------------------------------------------------------------------------
>
>invocation of g77 yields the following output:
>
>g77 -O -pedantic -o power power.f
>power.f: In program `power':
>power.f:13:
>         i=f1()
>              ^
>Expression at (^) has incorrect data type or rank for its context
>
>Compilation exited abnormally with code 1 at Mon Dec 14 17:04:38
>
>as far as i know, the f77 standard das permit empty argument lists.

Yup, it sure does, but...are you sure the problem isn't that f1 isn't
declared as INTEGER in the calling routine?

        tq vm, (burley)



More information about the Gcc-bugs mailing list