diff --git a/src/verilog.y b/src/verilog.y index 79da06d77..6443e72f4 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -6551,12 +6551,11 @@ covergroup_declaration: // ==IEEE: covergroup_declaration GRAMMARP->endLabel($7, $1, $7); } ; -covergroup_declarationFront: // IEEE: part of covergroup_declaration +covergroup_declarationFront: // IEEE: part of covergroup_declaration yCOVERGROUP idAny - { $$ = new AstClass{$2, *$2}; + { $$ = new AstConstraint{$2, *$2, nullptr}; BBUNSUP($1, "Unsupported: covergroup"); - SYMP->pushNew($$); - v3Global.setHasClasses(); } + SYMP->pushNew($$); } ; cgexpr: // IEEE-2012: covergroup_expression, before that just expression