This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/82995] Segmentation fault passing optional argument to intrinsic sum function
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Nov 2017 19:44:53 +0000
- Subject: [Bug fortran/82995] Segmentation fault passing optional argument to intrinsic sum function
- Auto-submitted: auto-generated
- References: <bug-82995-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82995
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2017-11-14
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
IMO the code is invalid: you cannot call my_sum with only one argument. I get a
segfault for all the revision I have tested from 4.8 up to trunk (8.0), except
with my instrumented trunk for which I get 0.
I am a little bit surprised that the mismatch between caller and callee is not
detected, but I think a compiler does have to (I did not look at the standard
legalese).