diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-10-09 21:34:11 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-10-09 21:34:11 +0300 |
commit | 5134a77df39775f8e892f0b28cdcf8aa556aadbb (patch) | |
tree | 5971c170520688da80c4148c9216d8bcca3b8a97 /awkgram.c | |
parent | 430a560a150bb77d5443973db5d00f4bd54dd603 (diff) | |
parent | 8e4ebdf25bb000f7c84e6cba7c01975c01536f44 (diff) | |
download | egawk-5134a77df39775f8e892f0b28cdcf8aa556aadbb.tar.gz egawk-5134a77df39775f8e892f0b28cdcf8aa556aadbb.tar.bz2 egawk-5134a77df39775f8e892f0b28cdcf8aa556aadbb.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -7576,8 +7576,13 @@ mk_assignment(INSTRUCTION *lhs, INSTRUCTION *rhs, INSTRUCTION *op) case Op_push_array: tp->opcode = Op_push_lhs; break; + case Op_field_assign: + yyerror(_("cannot assign a value to the result of a field post-increment expression")); + break; default: - cant_happen(); + yyerror(_("invalid target of assignment (opcode %s)"), + opcode2str(tp->opcode)); + break; } tp->do_reference = (op->opcode != Op_assign); /* check for uninitialized reference */ |