-static char Version[] = "ACK Modula-2 compiler Version 0.27";
+static char Version[] = "ACK Modula-2 compiler Version 0.28";
ChkCompat(pnd, *ptp, "case label");
}
nd = *pnd;
+ if (! (nd->nd_type->tp_fund & T_DISCRETE)) {
+ node_error(nd, "illegal type in case label");
+ }
}
[
UPTO { *pnd = nd = dot2node(Link,nd,NULLNODE);
diff = hi - lo;
tp->tp_size = (diff + 1) * tp->arr_elsize;
+ if (! fit(tp->tp_size, (int) word_size)) {
+ error("array too large");
+ }
/* generate descriptor and remember label.
*/