From: Clifford Wolf Date: Tue, 22 Sep 2015 19:34:21 +0000 (+0200) Subject: Fixed detection of "task foo(bar);" syntax error X-Git-Tag: yosys-0.6~144 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3a13cce32e8d1c002e95d1a4ec1feca30f221bb;p=yosys.git Fixed detection of "task foo(bar);" syntax error --- diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y index 708ac7627..0fd7c6e0d 100644 --- a/frontends/verilog/verilog_parser.y +++ b/frontends/verilog/verilog_parser.y @@ -708,6 +708,8 @@ wire_name_and_opt_assign: wire_name: TOK_ID range_or_multirange { + if (astbuf1 == nullptr) + frontend_verilog_yyerror("Syntax error."); AstNode *node = astbuf1->clone(); node->str = *$1; append_attr_clone(node, albuf);