From ac29393ec91a7b091dd1ce2d88b41005956460a0 Mon Sep 17 00:00:00 2001 From: Arkadiusz Kozdra Date: Wed, 11 Sep 2024 14:06:56 +0200 Subject: [PATCH] Do not parse covergroup identifiers as types Signed-off-by: Arkadiusz Kozdra --- src/verilog.y | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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