Commit 5c4aa279 by Steven G. Kargl

re PR fortran/66942 (trans-expr.c:5701 runtime error: member call on null…

re PR fortran/66942 (trans-expr.c:5701 runtime error: member call on null pointer of type 'struct vec')

2015-08-03  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/66942
	* trans-expr.c (gfc_conv_procedure_call): Avoid NULL pointer reference

From-SVN: r226517
parent c2a96ec2
2015-08-03 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66942
* trans-expr.c (gfc_conv_procedure_call): Avoid NULL pointer reference
2015-08-03 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/64921
......
......@@ -5921,18 +5921,18 @@ gfc_conv_procedure_call (gfc_se * se, gfc_symbol * sym,
vec_safe_reserve (retargs, arglen);
/* Add the return arguments. */
retargs->splice (arglist);
vec_safe_splice (retargs, arglist);
/* Add the hidden present status for optional+value to the arguments. */
retargs->splice (optionalargs);
vec_safe_splice (retargs, optionalargs);
/* Add the hidden string length parameters to the arguments. */
retargs->splice (stringargs);
vec_safe_splice (retargs, stringargs);
/* We may want to append extra arguments here. This is used e.g. for
calls to libgfortran_matmul_??, which need extra information. */
if (!vec_safe_is_empty (append_args))
retargs->splice (append_args);
vec_safe_splice (retargs, append_args);
arglist = retargs;
/* Generate the actual call. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment