Assertion: union's member | /r/HasProperty | undefined behavior std
Facets:
Source sentences:
text: ; // occupies 4 bytes std:: uint8_t c ; // occupies 1 byte } ; // the whole union occupies 4 bytes int main ( ) { S s = { 0x12345678 } ; // initializes the first member, s.n is now the active member // at this point, reading from s.s or s.c is undefined behavior std: