From 2ab819aef0ccf74949d510cac2d56695da8aa82a Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 28 Oct 2019 18:46:13 -0400 Subject: [PATCH] Fix bad-syntax crashes, bug1573 --- Changes | 3 ++- src/verilog.y | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 05e6c30f5..e358b1874 100644 --- a/Changes +++ b/Changes @@ -24,7 +24,8 @@ The contributors that suggested a given feature are shown in []. Thanks! **** Fix multithreaded yield behavior when no work. [Patrick Stewart] -**** Fix bad-syntax crashes, bug1548, bug1550-1553, bug1557-1560, bug1563. [Eric Rippey] +**** Fix bad-syntax crashes, bug1548, bug1550-1553, bug1557-1560, bug1563, + bug1573. [Eric Rippey] **** Benchmark --protect-lib runtime, bug1519. [Todd Strader] diff --git a/src/verilog.y b/src/verilog.y index d3520f433..ad940f677 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -1547,7 +1547,8 @@ member_decl_assignment: // Derived from IEEE: variable_decl_assignment PARSEP->tagNodep($$); } | id variable_dimensionListE '=' variable_declExpr - { $4->v3error("Unsupported: Initial values in struct/union members."); } + { $4->v3error("Unsupported: Initial values in struct/union members."); + $$ = NULL; } | idSVKwd { $$ = NULL; } // // // IEEE: "dynamic_array_variable_identifier '[' ']' [ '=' dynamic_array_new ]"