Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 1997 10:59:19 -0600
From:      keyser@clio.rice.edu (Kevin Keyser)
To:        questions@freebsd.org
Subject:   constant parameters in f2c/f77
Message-ID:  <9712101659.AA15757@clio.rice.edu>

next in thread | raw e-mail | index | archive | help
I see what I would call a bug in f2c/f77 running on a 2.2.2R machine.
The code below shows the behavior.  Looking at the C code produced
by f2c I can understand why it happens, but does anyone know where
something like this should be reported?

Kevin

=========================

      WRITE(6,*) 2
      CALL ALPHA(2)
      WRITE(6,*) 2
      END

      SUBROUTINE ALPHA(I)
      I = 1
      END

=========================

fbsd % f77 test.f
test2.f:
   MAIN:
   alpha:
fbsd % ./a.out
 2
 1




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9712101659.AA15757>