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]

Re: g77 bug with ENTRY statement


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


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