1%Error: t/t_lint_const_func_gen_bad.v:11:30: Constant function may not be declared under generate (IEEE 1800-2017 13.4.3) 2 : ... In instance t 3 11 | function automatic bit constFunc(); 4 | ^~~~~~~~~ 5%Error: t/t_lint_const_func_gen_bad.v:15:26: Expecting expression to be constant, but can't determine constant for FUNCREF 'constFunc' 6 : ... In instance t 7 t/t_lint_const_func_gen_bad.v:11:30: ... Location of non-constant FUNC 'constFunc': Constant function called under generate 8 t/t_lint_const_func_gen_bad.v:15:26: ... Called from constFunc() with parameters: 9 15 | localparam PARAM = constFunc(); 10 | ^~~~~~~~~ 11%Error: Exiting due to 12