[Bug c++/100185] transparent_union fails when the union has a destructor

gonzalo.gadeschi at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Apr 22 16:52:42 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100185

--- Comment #5 from gnzlbg <gonzalo.gadeschi at gmail dot com> ---
Thank you for the clarification! Will map Rust repr(transparent) to clang's
[[clang::trivial_abi]] then and will gracefully #pragma error to prevent users
from shooting themselves in the foot with GCC.


More information about the Gcc-bugs mailing list