File: t_castdyn_castconst_bad.out

package info (click to toggle)
verilator 5.038-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 162,552 kB
  • sloc: cpp: 139,204; python: 20,931; ansic: 10,222; yacc: 6,000; lex: 1,925; makefile: 1,260; sh: 494; perl: 282; fortran: 22
file content (17 lines) | stat: -rw-r--r-- 1,220 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%Warning-CASTCONST: t/t_castdyn_castconst_bad.v:20:11: $cast will always return one as 'int' is always castable from 'logic[31:0]'
                                                     : ... note: In instance 't'
                                                     : ... Suggest static cast
   20 |       i = $cast(v, 1);   
      |           ^~~~~
                    ... For warning description see https://verilator.org/warn/CASTCONST?v=latest
                    ... Use "/* verilator lint_off CASTCONST */" and lint_on around source to disable this message.
%Warning-CASTCONST: t/t_castdyn_castconst_bad.v:21:11: $cast will always return one as 'class{}Base' is always castable from 'class{}Base'
                                                     : ... note: In instance 't'
                                                     : ... Suggest static cast
   21 |       i = $cast(b, b);   
      |           ^~~~~
%Warning-CASTCONST: t/t_castdyn_castconst_bad.v:22:11: $cast will always return zero as 'class{}Base' is not castable from 'class{}Other'
                                                     : ... note: In instance 't'
   22 |       i = $cast(b, o);   
      |           ^~~~~
%Error: Exiting due to