data/full_repos/permissive/143278/ivltests/enum_test5.v
 line:3: before: "reg"
1: b'%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/enum_test5.v:5: Operator ENUMITEM \'XX2\' expects 4 bits on the Enum value, but Enum value\'s CONST \'3\'bxxx\' generates 3 bits.\n                                                                         : ... In instance top\n  enum reg[3:0] {VAL2, XX2=3\'bxxx} en2;\n                       ^~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/enum_test5.v:6: Operator ENUMITEM \'XX3\' expects 4 bits on the Enum value, but Enum value\'s CONST \'5\'bxxxxx\' generates 5 bits.\n                                                                         : ... In instance top\n  enum reg[3:0] {VAL3, XX3=5\'bxxxxx} en3;\n                       ^~~\n%Error: Exiting due to 2 warning(s)\n'
module top;

  enum reg[3:0] {VAL1, XX1=4'bxxxx} en1;

  enum reg[3:0] {VAL2, XX2=3'bxxx} en2;
  enum reg[3:0] {VAL3, XX3=5'bxxxxx} en3;

  initial $display("FAILED");
endmodule
module top;


  enum reg[3:0] {VAL1, XX1=4'bxxxx} en1;

  enum reg[3:0] {VAL2, XX2=3'bxxx} en2;
  enum reg[3:0] {VAL3, XX3=5'bxxxxx} en3;

  initial $display("FAILED");
endmodule