Branch: Tag:

2019-02-06

2019-02-06 22:25:14 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Improved handling of @constant.

2973:    i = ID_FROM_INT(Pike_compiler->new_program, $<number>4);    free_type(i->type);    i->type = get_type_of_svalue(&sv); +  if (p->flags & PROGRAM_CONSTANT) { +  /* Update, in case of @constant. */ +  i->opt_flags = 0; +  }    free_program(p);    } else if (!Pike_compiler->num_parse_error) {    /* Make sure code in this class is aware that something went wrong. */