Fix bad-syntax crashes, bug1573

This commit is contained in:
Wilson Snyder 2019-10-28 18:46:13 -04:00
parent 647c321437
commit 2ab819aef0
2 changed files with 4 additions and 2 deletions

View File

@ -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]

View File

@ -1547,7 +1547,8 @@ member_decl_assignment<memberp>: // 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 ]"