Fixed detection of "task foo(bar);" syntax error
authorClifford Wolf <clifford@clifford.at>
Tue, 22 Sep 2015 19:34:21 +0000 (21:34 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 22 Sep 2015 19:34:21 +0000 (21:34 +0200)
frontends/verilog/verilog_parser.y

index 708ac76274f35228141e639e7d07119f3637c7d2..0fd7c6e0db77642259fc1aa800586ad10ca61e77 100644 (file)
@@ -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);