[Bug fortran/30450] calling subroutine with constant parameter

2007-01-12 Thread milan at cmm dot ki dot si
--- 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

[Bug fortran/30450] calling subroutine with constant parameter

2007-01-12 Thread kargl at gcc dot gnu dot org
--- 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

[Bug fortran/30450] calling subroutine with constant parameter

2007-01-12 Thread pinskia at gcc dot gnu dot org
--- 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