<div dir="ltr">I don't think so, you can read a lengthy discussion hereĀ <a href="http://clang-developers.42468.n3.nabble.com/ubsan-active-member-check-for-unions-td4042990.html">http://clang-developers.42468.n3.nabble.com/ubsan-active-member-check-for-unions-td4042990.html</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 7, 2016 at 7:37 PM, Jeffrey Walton via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Everyone,<br>
<br>
I was reading "Accessing inactive union member - undefined behavior"<br>
(<a href="http://stackoverflow.com/a/11996970/608639" rel="noreferrer" target="_blank">http://stackoverflow.com/a/11996970/608639</a>). The rules are kind of<br>
involved, and it kind of made we wonder how many times I have (or I<br>
am) violating it.<br>
<br>
Are there any santizers for C++/Inactive union member access?<br>
<br>
Jeff<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>