From 501586431b23516ece87458f066f601d623c64c4 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 7 Jan 2021 23:54:25 -0800 Subject: [PATCH] Darrays are SV only and fix queue error message --- parse.y | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/parse.y b/parse.y index 46e641057..c7db3ace6 100644 --- a/parse.y +++ b/parse.y @@ -2617,6 +2617,9 @@ variable_dimension /* IEEE1800-2005: A.2.5 */ | '[' ']' { list *tmp = new list; 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 *tmp = new list; 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;