diff --git a/src/verilog.y b/src/verilog.y index d5bb07096..2f665bfb8 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -1952,7 +1952,8 @@ member_decl_assignment: // Derived from IEEE: variable_decl_assignment // // // IEEE: "[ covergroup_variable_identifier ] '=' class_new // // Pushed into variable_declExpr:class_new - | '=' class_new { nullptr; BBUNSUP($1, "Unsupported: member declaration assignment with new()"); } + | '=' class_new + { $$ = nullptr; BBUNSUP($1, "Unsupported: member declaration assignment with new()"); } ; list_of_variable_decl_assignments: // ==IEEE: list_of_variable_decl_assignments @@ -1975,7 +1976,8 @@ variable_decl_assignment: // ==IEEE: variable_decl_assignment // // // IEEE: "[ covergroup_variable_identifier ] '=' class_new // // Pushed into variable_declExpr:class_new - | '=' class_new { nullptr; BBUNSUP($1, "Unsupported: declaration assignment with new()"); } + | '=' class_new + { $$ = nullptr; BBUNSUP($1, "Unsupported: declaration assignment with new()"); } ; list_of_tf_variable_identifiers: // ==IEEE: list_of_tf_variable_identifiers @@ -2735,8 +2737,7 @@ list_of_defparam_assignments: //== IEEE: list_of_defparam_assignments defparam_assignment: // ==IEEE: defparam_assignment idAny '.' idAny '=' expr { $$ = new AstDefParam($4, *$1, *$3, $5); } | idAny '.' idAny '.' - { $$ = nullptr; - BBUNSUP($4, "Unsupported: defparam with more than one dot"); } + { $$ = nullptr; BBUNSUP($4, "Unsupported: defparam with more than one dot"); } ; //************************************************ @@ -3457,7 +3458,8 @@ for_initialization: // ==IEEE: for_initialization + for_variable_declarat for_initializationItemList: // IEEE: [for_variable_declaration...] for_initializationItem { $$ = $1; } - | for_initializationItemList ',' for_initializationItem { $$ = $1; BBUNSUP($2, "Unsupported: for loop initialization after the first comma"); } + | for_initializationItemList ',' for_initializationItem + { $$ = $1; BBUNSUP($2, "Unsupported: for loop initialization after the first comma"); } ; for_initializationItem: // IEEE: variable_assignment + for_variable_declaration