diff options
Diffstat (limited to 'awkgram.y')
-rw-r--r-- | awkgram.y | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -973,6 +973,9 @@ regular_print: $2->opcode = Op_push_array; $2->memory = variable($2->source_line, arr, Node_var_new); + if ($2->memory == symbol_table) + fatal(_("`delete' is not allowed with SYMTAB")); + if ($4 == NULL) { /* * As of September 2012, POSIX has added support @@ -1014,6 +1017,9 @@ regular_print: $3->opcode = Op_push_array; $1->expr_count = 0; $$ = list_append(list_create($3), $1); + + if ($3->memory == symbol_table) + fatal(_("`delete' is not allowed with SYMTAB")); } | exp { $$ = optimize_assignment($1); } |