This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]