projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6176f4d
)
Fixed detection of "task foo(bar);" syntax error
author
Clifford Wolf
<clifford@clifford.at>
Tue, 22 Sep 2015 19:34:21 +0000
(21:34 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Tue, 22 Sep 2015 19:34:21 +0000
(21:34 +0200)
frontends/verilog/verilog_parser.y
patch
|
blob
|
history
diff --git
a/frontends/verilog/verilog_parser.y
b/frontends/verilog/verilog_parser.y
index 708ac76274f35228141e639e7d07119f3637c7d2..0fd7c6e0db77642259fc1aa800586ad10ca61e77 100644
(file)
--- 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);