File: t_func_no_lifetime_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 (27 lines) | stat: -rw-r--r-- 1,800 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
%Warning-IMPLICITSTATIC: t/t_func_no_lifetime_bad.v:26:17: Function/task's lifetime implicitly set to static
                                                         : ... Suggest use 'function automatic' or 'function static'
   26 |    function int f_implicit_static();
      |                 ^~~~~~~~~~~~~~~~~
                         t/t_func_no_lifetime_bad.v:27:11: ... Location of implicit static variable
   27 |       int cnt = 0;
      |           ^~~
... Suggest use 'function automatic' or 'function static'
                         ... For warning description see https://verilator.org/warn/IMPLICITSTATIC?v=latest
                         ... Use "/* verilator lint_off IMPLICITSTATIC */" and lint_on around source to disable this message.
%Warning-IMPLICITSTATIC: t/t_func_no_lifetime_bad.v:31:9: Function/task's lifetime implicitly set to static
                                                        : ... Suggest use 'function automatic' or 'function static'
   31 |    task t_implicit_static();
      |         ^~~~~~~~~~~~~~~~~
                         t/t_func_no_lifetime_bad.v:32:11: ... Location of implicit static variable
   32 |       int cnt = 0;
      |           ^~~
... Suggest use 'function automatic' or 'function static'
%Warning-IMPLICITSTATIC: t/t_func_no_lifetime_bad.v:9:8: Variable's lifetime implicitly set to static
                                                        : ... Suggest use 'static' before variable declaration'
    9 |    int cnt = 0;   
      |        ^~~
%Warning-IMPLICITSTATIC: t/t_func_no_lifetime_bad.v:15:8: Variable's lifetime implicitly set to static
                                                        : ... Suggest use 'static' before variable declaration'
   15 |    int cnt = 0;   
      |        ^~~
%Error: Exiting due to