[Bug c++/102401] std::bit_cast falls over, seemingly due to some invisible alignment requirements

2022-01-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102401 --- Comment #7 from Jakub Jelinek --- Note, since r12-5789-gc57c910c945ac68ba9a7cda9b0f963173781d58c GCC implements https://wg21.link/P1272 which clarifies that the #c0 testcase is invalid. With unsigned char or std::byte instead of char in Data

[Bug c++/102401] std::bit_cast falls over, seemingly due to some invisible alignment requirements

2021-09-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102401 Jonathan Wakely changed: What|Removed |Added Depends on||78620 --- Comment #6 from Jonathan Wa

[Bug c++/102401] std::bit_cast falls over, seemingly due to some invisible alignment requirements

2021-09-20 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102401 Jakub Jelinek changed: What|Removed |Added Resolution|INVALID |--- Last reconfirmed|

[Bug c++/102401] std::bit_cast falls over, seemingly due to some invisible alignment requirements

2021-09-18 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102401 --- Comment #4 from Jonathan Wakely --- (In reply to Jakub Jelinek from comment #3) > There are things that need to be clarified, in particular value > initialization should clear even the padding bits, so supposedly > std::bit_cast of Item() if

[Bug c++/102401] std::bit_cast falls over, seemingly due to some invisible alignment requirements

2021-09-18 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102401 --- Comment #3 from Jakub Jelinek --- There are things that need to be clarified, in particular value initialization should clear even the padding bits, so supposedly std::bit_cast of Item() if the NSDMIs would be dropped might be well defined a

[Bug c++/102401] std::bit_cast falls over, seemingly due to some invisible alignment requirements

2021-09-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102401 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/102401] std::bit_cast falls over, seemingly due to some invisible alignment requirements

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