This is the mail archive of the gcc-patches@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]

Re: [PATCH] PR fortran/66942 -- avoid referencing a NULL C++ thing


Le 21/07/2015 21:08, Steve Kargl a écrit :
When C++ was injected into trans-expr.c in the form of vec,
it seems whomever did the conversion to vec forgot to check
for a NULL C++ thing.  This patch seems to avoid the problem,
but having zero knowledge of C++ I could be wrong.

OK for trunk?

2015-07-21  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/66942
	* trans-expr.c (gfc_conv_procedure_call): Avoid dereferencing NULL
	C++ thing.

Hello Steve,

I believe the vec API should have all that is necessary to handle this automatically.
Did you try using vec_safe_splice?

Mikael


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