Parser: Move 'with' block unsupported messages down out of parser

This commit is contained in:
Wilson Snyder 2020-07-01 18:01:32 -04:00
parent 82cc1a319f
commit 9d1a39a5e4
2 changed files with 1 additions and 4 deletions

View File

@ -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)

View File

@ -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