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 c++/30659 segfault w/ invalid input


"Seongbae Park" <seongbae.park@gmail.com> writes:

> This patch fixes the compiler segmentation fault on an invalid input.
> Bootstrapped and regtested on i686-linux.
> As I have never looked at c+ frontend before,
> there's a high chance I'm not doing the right thing.
> OK for mainline ?
> 
> 2007-02-05  Seongbae Park <seongbae.park@gmail.com>
> 
>         PR c++/30659
>         * search.c (lookup_member): Return error_mark_node on NULL basetype.

It would be appropriate to add the test case to the testsuite as part
of this patch.

(I can't approve this patch, but looking at it I wonder if should be
catching a NULL basetype earlier.)

Ian


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