Branch: Tag:

1999-04-09

1999-04-09 04:14:25 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

virtual overloading should now work again

Rev: src/program.c:1.121

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.120 1999/04/07 23:10:10 hubbe Exp $"); + RCSID("$Id: program.c,v 1.121 1999/04/09 04:14:25 hubbe Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
1849:    }       /* We modify the old definition if it is in this program */ +     if(ref.inherit_offset==0)    {    if(func)
1858:       funp->identifier_flags=function_flags;    }else{ -  if(compiler_pass==1 || (ref.id_flags & ID_INLINE)) +  if(ref.id_flags & ID_INLINE) +  {    goto make_a_new_def; -  +  }       /* Otherwise we make a new definition */    copy_shared_string(fun.name, name);
1887:    }   make_a_new_def:    +    #ifdef PIKE_DEBUG    if(compiler_pass==2)    fatal("Internal error: Not allowed to add more identifiers during second compiler pass.\n");