http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0476r2.html
This adds a new (pseudo) builtin, __builtin_bit_cast(T, v), which performs a bit_cast from a value v to a type T. This expression can be evaluated at compile time under specific circumstances. The compile time evaluation currently doesn't support bit-fields, but I'm planning on fixing this in a follow up (some of the logic for figuring this out is in CodeGen).
rdar://44987528
Thanks for taking a look!