File: t_class_assign_cond_bad.out

package info (click to toggle)
verilator 5.032-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 93,932 kB
  • sloc: cpp: 131,288; python: 19,365; ansic: 10,234; yacc: 5,733; lex: 1,905; makefile: 1,229; sh: 489; perl: 282; fortran: 22
file content (21 lines) | stat: -rw-r--r-- 1,389 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%Error: t/t_class_assign_cond_bad.v:22:25: Incompatible types of operands of condition operator: CLASSREFDTYPE 'Cls1' and CLASSREFDTYPE 'Cls2'
                                         : ... note: In instance 't'
   22 |       c1 = (c1 != null) ? c1 : c2;
      |                         ^
%Error: t/t_class_assign_cond_bad.v:23:10: Assign RHS expects a CLASSREFDTYPE 'Cls1', got CLASSREFDTYPE 'Cls2'
                                         : ... note: In instance 't'
   23 |       c1 = (c1 != null) ? c2 : c2;
      |          ^
%Error: t/t_class_assign_cond_bad.v:24:25: Incompatible types of operands of condition operator: BASICDTYPE 'logic' and CLASSREFDTYPE 'Cls2'
                                         : ... note: In instance 't'
   24 |       c2 = (c1 == null) ? 1'b1 : c2;
      |                         ^
%Error: t/t_class_assign_cond_bad.v:24:10: Assign RHS expects a CLASSREFDTYPE 'Cls2', got BASICDTYPE 'logic'
                                         : ... note: In instance 't'
   24 |       c2 = (c1 == null) ? 1'b1 : c2;
      |          ^
%Error: t/t_class_assign_cond_bad.v:25:29: Incompatible types of operands of condition operator: CLASSREFDTYPE 'ExtCls1' and CLASSREFDTYPE 'Cls1'
                                         : ... note: In instance 't'
   25 |       ext_c1 = (c1 == null) ? ext_c1 : c1;
      |                             ^
%Error: Exiting due to