diff --git a/src/verilog.y b/src/verilog.y index a9aa6c9b3..8a82c7d7a 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -2060,7 +2060,7 @@ instnameParen: instRangeE: /* empty */ { $$ = NULL; } - | '[' constExpr ']' { $$ = new AstRange($1,$2,$2->cloneTree(true)); } + | '[' constExpr ']' { $$ = new AstRange($1,new AstConst($1,0),$2); } | '[' constExpr ':' constExpr ']' { $$ = new AstRange($1,$2,$4); } ;