Branch: Tag:

2017-12-19

2017-12-19 14:56:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Add an extra pass on demand.

1665:    /* FALL_THROUGH */       default: -  if (Pike_compiler->compiler_pass != COMPILER_PASS_FIRST) +  if (Pike_compiler->compiler_pass == COMPILER_PASS_FIRST) { +  /* The type isn't fully known yet, so do an extra pass. */ +  struct compilation *c = THIS_COMPILATION; +  c->flags |= COMPILER_NEED_EXTRA_PASS; +  } else {    my_yyerror("Illegal program identifier: %O.", Pike_sp-1); -  +  }    push_object_type(0, 0);    break;