public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17887] g77 generates code that results in segmentation fault
[not found] <bug-17887-4@http.gcc.gnu.org/bugzilla/>
@ 2020-06-11 10:46 ` macro@linux-mips.org
2020-06-11 11:16 ` macro@linux-mips.org
1 sibling, 0 replies; 5+ messages in thread
From: macro@linux-mips.org @ 2020-06-11 10:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17887
Maciej W. Rozycki <macro@linux-mips.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |deji_aking at yahoo dot ca
--- Comment #4 from Maciej W. Rozycki <macro@linux-mips.org> ---
*** Bug 37974 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/17887] g77 generates code that results in segmentation fault
[not found] <bug-17887-4@http.gcc.gnu.org/bugzilla/>
2020-06-11 10:46 ` [Bug fortran/17887] g77 generates code that results in segmentation fault macro@linux-mips.org
@ 2020-06-11 11:16 ` macro@linux-mips.org
1 sibling, 0 replies; 5+ messages in thread
From: macro@linux-mips.org @ 2020-06-11 11:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17887
Maciej W. Rozycki <macro@linux-mips.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |macro@linux-mips.org
--- Comment #5 from Maciej W. Rozycki <macro@linux-mips.org> ---
*** Bug 95631 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/17887] g77 generates code that results in segmentation fault
2004-10-08 2:24 [Bug fortran/17887] New: " bacon at aerodyne dot com
2004-10-08 2:47 ` [Bug fortran/17887] " pinskia at gcc dot gnu dot org
2004-10-08 3:10 ` bdavis at gcc dot gnu dot org
@ 2004-10-08 3:15 ` bdavis at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2004-10-08 3:15 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/17887] g77 generates code that results in segmentation fault
2004-10-08 2:24 [Bug fortran/17887] New: " bacon at aerodyne dot com
2004-10-08 2:47 ` [Bug fortran/17887] " pinskia at gcc dot gnu dot org
@ 2004-10-08 3:10 ` bdavis at gcc dot gnu dot org
2004-10-08 3:15 ` bdavis at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2004-10-08 3:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bdavis at gcc dot gnu dot org 2004-10-08 03:10 -------
the problem is you are attempting to change the value of a constant.
here is a minimal example:
CALL FOO(10)
END
SUBROUTINE FOO(X)
INTEGER X
X=100
END
gfortran also seg faults with this type of example. i will dig into the standard
and see if this is permitted or not.
--bud davis
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17887
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/17887] g77 generates code that results in segmentation fault
2004-10-08 2:24 [Bug fortran/17887] New: " bacon at aerodyne dot com
@ 2004-10-08 2:47 ` pinskia at gcc dot gnu dot org
2004-10-08 3:10 ` bdavis at gcc dot gnu dot org
2004-10-08 3:15 ` bdavis at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-08 2:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-08 02:47 -------
The code is invalid, you are passing in a constant to a function and in fortran it is passed by reference
always. So you are trying to change the value of -1.0 which is undefined at runtime, in our case both
g77 and gfortran segfault.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17887
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-06-11 11:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-17887-4@http.gcc.gnu.org/bugzilla/>
2020-06-11 10:46 ` [Bug fortran/17887] g77 generates code that results in segmentation fault macro@linux-mips.org
2020-06-11 11:16 ` macro@linux-mips.org
2004-10-08 2:24 [Bug fortran/17887] New: " bacon at aerodyne dot com
2004-10-08 2:47 ` [Bug fortran/17887] " pinskia at gcc dot gnu dot org
2004-10-08 3:10 ` bdavis at gcc dot gnu dot org
2004-10-08 3:15 ` bdavis at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).