Use the identifier to get the correct line information
Using the closing ')' was not giving the correct line number.
This commit is contained in:
parent
498bfcd24b
commit
ea065a674d
2
parse.y
2
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue