Branch: Tag:

2002-04-17

2002-04-17 16:21:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed bug in handling of nomask in end_first_pass().

Rev: src/program.c:1.312

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.311 2002/04/15 15:53:02 grubba Exp $"); + RCSID("$Id: program.c,v 1.312 2002/04/17 16:21:00 grubba Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
640:    for(i=0;i<(int)p->num_identifier_references;i++)    {    struct identifier *id; -  if(p->identifier_references[i].id_flags & ID_NOMASK) +  if((p->identifier_references[i].id_flags & (ID_NOMASK|ID_HIDDEN)) == +  ID_NOMASK)    {    struct pike_string *name=ID_FROM_INT(p, i)->name;    -  if(e == -1) -  e=really_low_find_shared_string_identifier(name,p,SEE_STATIC); +  e=really_low_find_shared_string_identifier(name, p, +  SEE_STATIC|SEE_PRIVATE);    -  if(e != i) +  if((e != i) && (e != -1))    {    if(name->len < 1024 && !name->size_shift)    my_yyerror("Illegal to redefine final identifier %s",name->str);