commit a3097d05bbd05012975d95d6682329f145368ed2 from: Omar Polo date: Wed Aug 04 17:40:42 2021 UTC improve error message on invalid expr. for const commit - 2e261d49a4da00c13f3151a7b02705254656b2b3 commit + a3097d05bbd05012975d95d6682329f145368ed2 blob - 7fab571c5ccbb281f7031ca50d5dc0543baf8ace blob + b8eae69506de058d29202e1e6b4d3cf39aae0370 --- np.y +++ np.y @@ -140,7 +140,7 @@ mconst : consti nl | mconst consti nl ; consti : SYMBOL '=' expr { if (!global_set($1, $3)) { - yyerror("constant expression is not a literal"); + yyerror("can't set %s: illegal expression", $1); free($1); free_op($3); YYERROR;