This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17887] g77 generates code that results in segmentation fault
- From: "bdavis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2004 03:15:34 -0000
- Subject: [Bug fortran/17887] g77 generates code that results in segmentation fault
- References: <20041008022405.17887.bacon@aerodyne.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bdavis at gcc dot gnu dot org 2004-10-08 03:15 -------
IMHO, here is the part of the F77 standard that applies:
15.9.3.2 Variables as Dummy Arguments.
A dummy argument that is a variable may be associated with an actual argument
that is a variable, array element, substring, or expression.
If the actual argument is a variable name, array element name, or substring
name, the associated dummy argument may be defined or redefined within the
subprogram. If the actual argument is a constant, a symbolic name of a constant,
a function reference, an expression involving operators, or an expression
enclosed in parentheses, the associated dummy argument must not be redefined
within the subprogram.
--bud
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17887