[Bug fortran/30450] calling subroutine with constant parameter

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jan 12 17:58:00 GMT 2007



------- 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 been what Fortran
has done for years.

Oh and this is not an issue that was introduced by the change over to gfortran
from g77.  g77 also segfaulted on your undefined code.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30450



More information about the Gcc-bugs mailing list