mrs@philabs.Philips.Com (Member Research Staff) (01/08/88)
While trying to port a program from VMS to UNIX I ran across the following bug in the UNIX 4.3 BSD f77 compiler. (This subroutine isn't meant to do anything but display the bug). Here is the file: % cat foo.f subroutine getc(char) character char,chas*(*) integer n c return entry gets(chas,n) return end and the error message I get is: % f77 foo.f foo.f getc: Error on line 2 of foo.f: Declaration error for chas: illegal adjustable length character variable entry gets: Error. No assembly. -------------------- The file compiles correctly using the following machines, operating systems: IBM/CMS fortran compilier VAX/VMS fortran compilier SUN UNIX 4.2 Release 3.4 f77 compilier Does anyone on the net have a fix for this bug. Thanks Mark R. Simpson Philips Laboratories uunet!philabs!mrs North American Philips Corporation or Briarcliff Manor, NY 10510 mrs@philabs.philips.com (914) 945-6163