Use the identifier to get the correct line information

Using the closing ')' was not giving the correct line number.
This commit is contained in:
Cary R 2012-01-09 19:11:36 -08:00
parent 498bfcd24b
commit ea065a674d
1 changed files with 1 additions and 1 deletions

View File

@ -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