Branch: Tag:

2006-03-02

2006-03-02 10:37:58 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fix for the bug noted in LysLysKOM 14180500, where reused local variables weren't cleared properly.

Rev: src/docode.c:1.70
Rev: src/language.yacc:1.187
Rev: src/las.c:1.181

188:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.186 2006/02/25 11:14:04 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.187 2006/03/02 10:37:58 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
2635:    | type6 F_IDENTIFIER    {    add_local_name($2->u.sval.u.string,compiler_pop_type(),0); -  $$=mklocalnode(islocal($2->u.sval.u.string),0); +  $$=mklocalnode(islocal($2->u.sval.u.string),-1);    free_node($2);    }    | bad_expr_ident