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

2021-04-22 Thread gonzalo.gadeschi at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100185 --- Comment #5 from gnzlbg --- 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.

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

2021-04-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100185 --- Comment #4 from Jakub Jelinek --- No and I think it is quite bad idea.

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

2021-04-22 Thread gonzalo.gadeschi at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100185 --- Comment #3 from gnzlbg --- @Jakub, is there a GCC equivalent to `[[clang::trivial_abi]]` that one can use instead ?

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

2021-04-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100185 Richard Biener changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

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

2021-04-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100185 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1