This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR fortran/66942 -- avoid referencing a NULL C++ thing
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>, fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 28 Jul 2015 15:04:52 +0200
- Subject: Re: [PATCH] PR fortran/66942 -- avoid referencing a NULL C++ thing
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sfrmc.priv.atos.fr; dkim=none (no signature); dkim-adsp=none (no policy) header dot from=mikael dot morin at sfr dot fr
- References: <20150721190814 dot GA32735 at troutmask dot apl dot washington dot edu>
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