[Bug fortran/82995] Segmentation fault passing optional argument to intrinsic sum function

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Tue Nov 14 19:44:00 GMT 2017


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).


More information about the Gcc-bugs mailing list