diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2019-02-03 22:21:50 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2019-02-03 22:21:50 +0200 |
commit | c9b866094dab452054c85971d96ebcb3afdcaacf (patch) | |
tree | 775ef664028c6364977ae4e404a852a24d249f86 /awkgram.c | |
parent | 348cdff0b903121e4a3d21dec69947fa4fc779cd (diff) | |
download | egawk-c9b866094dab452054c85971d96ebcb3afdcaacf.tar.gz egawk-c9b866094dab452054c85971d96ebcb3afdcaacf.tar.bz2 egawk-c9b866094dab452054c85971d96ebcb3afdcaacf.zip |
Update TODO, disallow @/.../ as second arg to index.
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7293,7 +7293,7 @@ snode(INSTRUCTION *subn, INSTRUCTION *r) else if (r->builtin == do_index) { arg = subn->nexti->lasti->nexti; /* 2nd arg list */ ip = arg->lasti; - if (ip->opcode == Op_match_rec) + if (ip->opcode == Op_match_rec || ip->opcode == Op_push_re) fatal(_("index: regexp constant as second argument is not allowed")); } #ifdef ARRAYDEBUG |