Fixed detection of "task foo(bar);" syntax error

This commit is contained in:
Clifford Wolf 2015-09-22 21:34:21 +02:00
parent 6176f4d081
commit a3a13cce32
1 changed files with 2 additions and 0 deletions

View 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);