Darrays are SV only and fix queue error message

This commit is contained in:
Cary R 2021-01-07 23:54:25 -08:00
parent 1bffc649cb
commit 501586431b
1 changed files with 4 additions and 1 deletions

View File

@ -2617,6 +2617,9 @@ variable_dimension /* IEEE1800-2005: A.2.5 */
| '[' ']'
{ list<pform_range_t> *tmp = new list<pform_range_t>;
pform_range_t index (0,0);
if (!gn_system_verilog()) {
yyerror("error: Dynamic array declaration require SystemVerilog.");
}
tmp->push_back(index);
$$ = tmp;
}
@ -2625,7 +2628,7 @@ variable_dimension /* IEEE1800-2005: A.2.5 */
list<pform_range_t> *tmp = new list<pform_range_t>;
pform_range_t index (new PENull,0);
if (!gn_system_verilog()) {
yyerror("error: Queue declarations require SystemVerilog.");
yyerror("error: Queue declaration require SystemVerilog.");
}
tmp->push_back(index);
$$ = tmp;