The following works fine. ```p4 bit<32> x = 0; ``` However, the following causes bad code generation ```p4 bit<32> x; ``` According to the P4 spec section 11.2, variable initializers are optional, so this should be accepted by the front end and generate valid code.
The following works fine.
However, the following causes bad code generation
According to the P4 spec section 11.2, variable initializers are optional, so this should be accepted by the front end and generate valid code.