mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 15:17:36 +00:00
Parser: Move 'with' block unsupported messages down out of parser
This commit is contained in:
parent
82cc1a319f
commit
9d1a39a5e4
@ -3459,7 +3459,7 @@ function_subroutine_callNoMethod<nodep>: // IEEE: function_subroutine_call (as f
|
||||
// // We implement randomize as a normal funcRef, since randomize isn't a keyword
|
||||
// // Note yNULL is already part of expressions, so they come for free
|
||||
| funcRef yWITH__CUR constraint_block { $$ = $1; BBUNSUP($2, "Unsupported: randomize() 'with' constraint"); }
|
||||
| funcRef yWITH__CUR '{' '}' { $$ = $1; BBUNSUP($2, "Unsupported: randomize() 'with'"); }
|
||||
| funcRef yWITH__CUR '{' '}' { $$ = new AstWith($2, false, $1, NULL); }
|
||||
;
|
||||
|
||||
system_t_call<nodep>: // IEEE: system_tf_call (as task)
|
||||
|
@ -34,7 +34,4 @@
|
||||
%Error-UNSUPPORTED: t/t_randomize.v:30:4: Unsupported: constraint
|
||||
30 | constraint dis {
|
||||
| ^~~~~~~~~~
|
||||
%Error-UNSUPPORTED: t/t_randomize.v:50:25: Unsupported: randomize() 'with'
|
||||
50 | v = p.randomize() with {};
|
||||
| ^~~~
|
||||
%Error: Exiting due to
|
||||
|
Loading…
Reference in New Issue
Block a user