forked from github/verilator
Parser: Move extends param class unsupported message
This commit is contained in:
parent
f0a6e4c2b2
commit
ced1af8cb8
@ -5876,18 +5876,17 @@ class_typeExtImpOne<nodep>: // part of IEEE: class_type, where we either get a p
|
||||
idAny
|
||||
/*mid*/ { /* no nextId as not refing it above this*/ }
|
||||
/*cont*/ parameter_value_assignmentE
|
||||
{ $$ = new AstParseRef($<fl>1, VParseRefExp::PX_TEXT, *$1, NULL, NULL);
|
||||
$<scp>$ = $<scp>1;
|
||||
if ($3) BBUNSUP($3->fileline(), "Unsupported: Parameterized classes"); }
|
||||
{ $$ = new AstClassOrPackageRef($<fl>1, *$1, $<scp>1, $3);
|
||||
$<scp>$ = $<scp>1; }
|
||||
//
|
||||
// // package_sopeIdFollows expanded
|
||||
| yD_UNIT yP_COLONCOLON
|
||||
{ $$ = new AstParseRef($<fl>1, VParseRefExp::PX_TEXT, "$unit", NULL, NULL);
|
||||
{ $$ = new AstClassOrPackageRef($<fl>1, "$unit", NULL, NULL);
|
||||
$<scp>$ = NULL; // No purpose otherwise, every symtab can see root
|
||||
SYMP->nextId(PARSEP->rootp()); }
|
||||
//
|
||||
| yLOCAL__COLONCOLON yP_COLONCOLON
|
||||
{ $$ = new AstParseRef($<fl>1, VParseRefExp::PX_TEXT, "local", NULL, NULL);
|
||||
{ $$ = new AstClassOrPackageRef($<fl>1, "local::", NULL, NULL);
|
||||
$<scp>$ = NULL; // UNSUP
|
||||
SYMP->nextId(PARSEP->rootp());
|
||||
BBUNSUP($1, "Unsupported: Randomize 'local::'"); }
|
||||
|
@ -1,28 +1,16 @@
|
||||
%Error-UNSUPPORTED: t/t_class_extends.v:13:21: Unsupported: class extends
|
||||
13 | class Base1 extends Base0;
|
||||
| ^~~~~
|
||||
%Error: t/t_class_extends.v:13:21: Found definition of 'Base0' as a CLASS but expected a variable
|
||||
13 | class Base1 extends Base0;
|
||||
| ^~~~~
|
||||
%Error-UNSUPPORTED: t/t_class_extends.v:18:21: Unsupported: class extends
|
||||
18 | class Base2 extends Base1;
|
||||
| ^~~~~
|
||||
%Error: t/t_class_extends.v:18:21: Found definition of 'Base1' as a CLASS but expected a variable
|
||||
18 | class Base2 extends Base1;
|
||||
| ^~~~~
|
||||
%Error-UNSUPPORTED: t/t_class_extends.v:22:19: Unsupported: class extends
|
||||
22 | class Cls extends Base2;
|
||||
| ^~~~~
|
||||
%Error: t/t_class_extends.v:22:19: Found definition of 'Base2' as a CLASS but expected a variable
|
||||
22 | class Cls extends Base2;
|
||||
| ^~~~~
|
||||
%Error: t/t_class_extends.v:25:4: Can't find typedef: 'T'
|
||||
25 | T imemberc;
|
||||
| ^
|
||||
%Error-UNSUPPORTED: t/t_class_extends.v:33:43: Unsupported: class extends
|
||||
33 | class uvm__registry #(type T=int) extends uvm_object_wrapper;
|
||||
| ^~~~~~~~~~~~~~~~~~
|
||||
%Error: t/t_class_extends.v:33:43: Found definition of 'uvm_object_wrapper' as a CLASS but expected a variable
|
||||
33 | class uvm__registry #(type T=int) extends uvm_object_wrapper;
|
||||
| ^~~~~~~~~~~~~~~~~~
|
||||
%Error: Exiting due to
|
||||
|
@ -7,9 +7,6 @@
|
||||
%Error-UNSUPPORTED: t/t_class_extends_this.v:17:19: Unsupported: class extends
|
||||
17 | class Cls extends Base;
|
||||
| ^~~~
|
||||
%Error: t/t_class_extends_this.v:17:19: Found definition of 'Base' as a CLASS but expected a variable
|
||||
17 | class Cls extends Base;
|
||||
| ^~~~
|
||||
%Error-UNSUPPORTED: t/t_class_extends_this.v:21:11: Unsupported: this
|
||||
21 | if (this.value != 2) $stop;
|
||||
| ^~~~
|
||||
|
@ -1,7 +1,4 @@
|
||||
%Error-UNSUPPORTED: t/t_class_member_bad.v:11:20: Unsupported: class extends
|
||||
11 | class Cls2 extends Base1;
|
||||
| ^~~~~
|
||||
%Error: t/t_class_member_bad.v:11:20: Found definition of 'Base1' as a CLASS but expected a variable
|
||||
11 | class Cls2 extends Base1;
|
||||
| ^~~~~
|
||||
%Error: Exiting due to
|
||||
|
@ -1,7 +1,4 @@
|
||||
%Error-UNSUPPORTED: t/t_class_method_bad.v:11:20: Unsupported: class extends
|
||||
11 | class Cls2 extends Base1;
|
||||
| ^~~~~
|
||||
%Error: t/t_class_method_bad.v:11:20: Found definition of 'Base1' as a CLASS but expected a variable
|
||||
11 | class Cls2 extends Base1;
|
||||
| ^~~~~
|
||||
%Error: Exiting due to
|
||||
|
Loading…
Reference in New Issue
Block a user