This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g77 bug with ENTRY statement
- To: toon at moene dot indiv dot nluug dot nl (Toon Moene)
- Subject: Re: g77 bug with ENTRY statement
- From: "Steven G. Kargl" <kargl at troutmask dot apl dot washington dot edu>
- Date: Mon, 16 Aug 1999 12:55:11 -0700 (PDT)
- Cc: craig at jcb-sc dot com, gcc-bugs at egcs dot cygnus dot com
Once upon a time, Toon Moene said:
>
> It would indeed be very nice if g77 produced a clear warning here.
>
> Just as a data point: Both SGI's f90 and f77 version 7.2.1. didn't warn
> about this construct when using their -ansi options.
>
> Executables produced by both versions of the compiler dumped core in
> exactly (as far as possible) the same manner as that generated by g77.
>
The only Fortran 77 compiler I've found that issues a warning is
Compaq's. It compiles the code, and (pre-)initializes the undefined
variable z as 0 for entry b(). This is probably not what the original
author of the code wants.
Ftnchek also misses this problem.
--
Steve