--- Comment #3 from milan at cmm dot ki dot si 2007-01-12 18:23 ---
Subject: Re: calling subroutine with constant parameter
> "pinskia" == pinskia at gcc dot gnu dot org <[EMAIL PROTECTED]> writes:
pinskia> --- Comment #1 from pinskia at gcc dot gnu dot org
pinskia> 20
--- Comment #2 from kargl at gcc dot gnu dot org 2007-01-12 18:10 ---
The Fortran standard has never mandated pass-by-reference in
either subroutine or function call. A Fortran compiler can
use either pass-by-reference or pass-by-value. In fact, the
Standard does not require a Fortran
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-01-12 17:58 ---
The only use is to change the value of "1" :).
Gfortran is correct as this behavior is undefined as you are trying to change
the value of the constant 1.
in Fortran all agruments are passed as reference. This has b