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]

Re: Prevent seg fault on buggy input


On Tue, May 16, 2000 at 02:38:35PM -0700, Nick Clifton wrote:
> Then it continues on to try to evaluate the assignment to foo.  It
> calls finish_decl() but the 'init' tree just contains an error decl
> inside a NON_LVALUE_EXPR:
> 
> (gdb) call debug_tree (init)
>  <non_lvalue_expr 0x401168a0 type <error_mark 0x40015440>
>     arg 0 <error_mark 0x40015440>>

This is where things went wrong, IMO.


r~

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