This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Prevent seg fault on buggy input
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: Re: Prevent seg fault on buggy input
- From: Richard Henderson <rth at cygnus dot com>
- Date: Tue, 16 May 2000 15:14:13 -0700
- Cc: law at cygnus dot com, gcc-patches at gcc dot gnu dot org
- References: <200005162138.OAA09420@elmo.cygnus.com>
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~