title: Accessing inactive union member and undefined behavior?
body: <p>I was under the impression that accessing a <code>union</code> member other than the last one set is UB, but I can't seem to find a solid reference (other than answers claiming it's UB but without any support from the standard).</p>
  
  <p>So, is it undefined behavior?</p>