This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30450] calling subroutine with constant parameter
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jan 2007 17:58:10 -0000
- Subject: [Bug fortran/30450] calling subroutine with constant parameter
- References: <bug-30450-3791@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla 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 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