Fix $fclose not accepting expressions (#3237).

This commit is contained in:
Wilson Snyder 2022-01-01 16:48:15 -05:00
parent d679d50eca
commit 80859a609a
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ Verilator 4.217 devel
* Fix VL_STREAML_FAST_QQI with 64 bit left-hand-side (#3232) (#3235)
* Fix $sformat of inputs/outputs (#3236). [Adrien Le Masle]
* Fix associative array foreach loop (#3229).
* Fix $fclose not accepting expressions (#3237). [Julie Schwartz]
* Fix $random not updating seed (#3238). [Julie Schwartz]
* Fix splitting of _eval and other top level functions. [Geza Lore, Shunyao CAD]

View File

@ -3619,7 +3619,7 @@ system_t_call<nodep>: // IEEE: system_tf_call (as task)
//
| yD_EXIT parenE { $$ = new AstFinish($1); }
//
| yD_FCLOSE '(' idClassSel ')' { $$ = new AstFClose($1, $3); }
| yD_FCLOSE '(' expr ')' { $$ = new AstFClose{$1, $3}; }
| yD_FFLUSH parenE { $$ = new AstFFlush($1, nullptr); }
| yD_FFLUSH '(' expr ')' { $$ = new AstFFlush($1, $3); }
| yD_FINISH parenE { $$ = new AstFinish($1); }