30-07-2021, 10:27 PM
(This post was last modified: 09-08-2021, 07:40 AM by forum admin.
Edit Reason: removed vendor name
)
I'm having a disagreement with my tool vendor over the essential types of constant variables.
My interpretation of the spec is that all the identifiers (v1, v2, v3 and v4) have uint32_t essential type.
My tool vendor's interpretation is that v1 has a uint32_t essential type. While v2, v3 and v4 have a uint8_t essential type. (I don't have any insight into their reasoning)
Clarification on this issue would be much appreciated.
Code:
uint32_t v1 = 1U;
const uint32_t v2 = 1U;
static const uint32_t v3 = 1U;
constexpr uint32_t v4 = 1U;
My interpretation of the spec is that all the identifiers (v1, v2, v3 and v4) have uint32_t essential type.
My tool vendor's interpretation is that v1 has a uint32_t essential type. While v2, v3 and v4 have a uint8_t essential type. (I don't have any insight into their reasoning)
Clarification on this issue would be much appreciated.