Branch: Tag:

2018-02-14

2018-02-14 15:12:21 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Revert "Compiler: Added Pike 8.0 compat for is_const() change."

This is obsolete when 6ac3cfe111ffebcb457701ea2cbe3a01a57fdb44 is reverted.

This reverts commit 2984f30cbe903776c0e678b444bba26c7d7d60a2.

2252:    node *case_val = i == 0 ? CAR(n) : CDR(n);       if (case_val) { -  int warn = 0; -  if(!is_const(case_val) && -  !(warn = (TEST_COMPAT(8, 0) && is_const_80(case_val)))) +  if(!is_const(case_val))    yyerror("Case label isn't constant."); -  if (warn) { -  yywarning("Case label has external dependencies."); -  } +        if (case_val->type) {    if (!pike_types_le(case_val->type, current_switch.type)) {