Commit 94cbafd1 by Prathamesh Kulkarni Committed by Prathamesh Kulkarni

genmatch.c (parser::parse_operation): Reject expanding operator-list inside 'for'.

2015-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

	* genmatch.c (parser::parse_operation): Reject expanding operator-list inside 'for'.

From-SVN: r223612
parent 7f0c6bad
2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* genmatch.c (parser::parse_operation): Reject expanding operator-list inside 'for'.
2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* genmatch.c (parser::parse_for): Reject iterator if used as operator-list.
2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
......
......@@ -2913,7 +2913,12 @@ parser::parse_operation ()
user_id *p = dyn_cast<user_id *> (op);
if (p && p->is_oper_list)
record_operlist (id_tok->src_loc, p);
{
if (active_fors.length() == 0)
record_operlist (id_tok->src_loc, p);
else
fatal_at (id_tok, "operator-list %s cannot be exapnded inside 'for'", id);
}
return op;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment