Quantcast
Channel: User Peter - Reinstate Monica - Stack Overflow
Viewing all articles
Browse latest Browse all 239

Comment by Peter - Reinstate Monica on Is this declaration UB?

$
0
0
@IanAbbott re "My take is that modifying a member of a union will damage the values of the other members": It will change what the memory contains -- but I suppose that in the case of a const value, the compiler may decide to not access that memory. It is const, after all.

Viewing all articles
Browse latest Browse all 239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>