Closed mycoboco closed 7 years ago
Difficult to completely remove diagnostics from enode_cast()
because:
overflow in implicit conversion
not mentioning types would help, but require enode_cast()
to tell if the diagnostic has been issued; andenode_cast()
to accept bitfield info would help, but changing every invocation of it should be a burden.Seems not bad to separate a bit-field overflow check into two, one to check if an initializer fits in the storage unit and the other to check if fits in a bit-field if the first diagnostic message shows the type of the storage unit type correctly.