Are there any santizers for C++/Inactive union member access?

Hi Everyone,

I was reading "Accessing inactive union member - undefined behavior"
(http://stackoverflow.com/a/11996970/608639). The rules are kind of
involved, and it kind of made we wonder how many times I have (or I
am) violating it.

Are there any santizers for C++/Inactive union member access?

Jeff

I don’t think so, you can read a lengthy discussion here http://clang-developers.42468.n3.nabble.com/ubsan-active-member-check-for-unions-td4042990.html