[PATCH] PR fortran/66942 -- avoid referencing a NULL C++ thing
Richard Biener
richard.guenther@gmail.com
Wed Jul 29 08:26:00 GMT 2015
On Tue, Jul 28, 2015 at 3:19 PM, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
> On Tue, Jul 28, 2015 at 03:04:52PM +0200, Mikael Morin wrote:
>> 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?
That handles NULL retargs, not NULL or empty arglist.
>
> I know zero about vec and I know zero about C++.
The patch looks ok to me.
Richard.
> --
> Steve
More information about the Fortran
mailing list