From ea065a674d8e2f471622e1787090f55eaddd1264 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 9 Jan 2012 19:11:36 -0800 Subject: [PATCH] Use the identifier to get the correct line information Using the closing ')' was not giving the correct line number. --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.y b/parse.y index 3f4c78dbf..df5b5e962 100644 --- a/parse.y +++ b/parse.y @@ -3041,7 +3041,7 @@ module_item current_function = 0; delete[]$4; if ($7==0 && !gn_system_verilog()) { - yyerror(@7, "error: Empty parenthesis syntax requires SystemVerilog."); + yyerror(@4, "error: Empty parenthesis syntax requires SystemVerilog."); } } | K_function automatic_opt function_range_or_type_opt IDENTIFIER error K_endfunction