https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82962

--- Comment #6 from janus at gcc dot gnu.org ---
(In reply to janus from comment #0)
> ==16313== Conditional jump or move depends on uninitialised value(s)
> ==16313==    at 0x4F3B7EA: _gfortran_execute_command_line_i4 (in
> /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0)
> 
> This only occurs if an EXITSTAT argument is passed, which is not initialized
> before the call. However, EXITSTAT is supposed to be an output argument
> AFAIK.

Actually I just noticed that the F08 standard defines the EXITSTAT argument of
EXECUTE_COMMAND_LINE as INTENT(INOUT), in contrast to CMDSTAT which is
INTENT(OUT).

Therefore not initializing EXITSTAT before the call is probably a user error,
making this PR invalid, I guess.

Reply via email to