mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Fix mis-parsing of constraint = new
.
This commit is contained in:
parent
9f9770e722
commit
a1a74cb1d9
@ -2297,9 +2297,6 @@ member_decl_assignment<memberDTypep>: // Derived from IEEE: variable_decl_assi
|
||||
// // IEEE: "class_variable_identifier [ '=' class_new ]"
|
||||
// // variable_dimensionE must be empty
|
||||
// // Pushed into variable_declExpr:dynamic_array_new
|
||||
//
|
||||
// // IEEE: "[ covergroup_variable_identifier ] '=' class_new
|
||||
// // Pushed into variable_declExpr:class_new
|
||||
;
|
||||
|
||||
list_of_variable_decl_assignments<varp>: // ==IEEE: list_of_variable_decl_assignments
|
||||
@ -2319,11 +2316,6 @@ variable_decl_assignment<varp>: // ==IEEE: variable_decl_assignment
|
||||
// // IEEE: "class_variable_identifier [ '=' class_new ]"
|
||||
// // variable_dimensionE must be empty
|
||||
// // Pushed into variable_declExpr:dynamic_array_new
|
||||
//
|
||||
// // IEEE: "[ covergroup_variable_identifier ] '=' class_new
|
||||
// // Pushed into variable_declExpr:class_new
|
||||
| '=' class_new
|
||||
{ $$ = nullptr; BBUNSUP($1, "Unsupported: declaration assignment with new()"); }
|
||||
;
|
||||
|
||||
list_of_tf_variable_identifiers<nodep>: // ==IEEE: list_of_tf_variable_identifiers
|
||||
|
@ -1,4 +1,4 @@
|
||||
%Error: t/t_flag_wpedantic_bad.v:8:8: syntax error, unexpected global
|
||||
%Error: t/t_flag_wpedantic_bad.v:8:8: syntax error, unexpected global, expecting IDENTIFIER or do or final or randomize
|
||||
8 | reg global;
|
||||
| ^~~~~~
|
||||
%Error: Exiting due to
|
||||
|
Loading…
Reference in New Issue
Block a user