[Bug c++/92900] Cannot use member of packed struct in constexpr

2024-10-13 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92900 --- Comment #5 from Eric Gallager --- (In reply to Eric Gallager from comment #1) > possibly related to bug 60972 ...and, from the other direction, bug 68160 and bug 36566

[Bug c++/92900] Cannot use member of packed struct in constexpr

2019-12-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92900 --- Comment #4 from Jonathan Wakely --- Since accessing a misaligned variable is undefined behaviour, I don't think it should be permitted in constant expressions (at least for the cases where the alignment is reduced from its natural value).

[Bug c++/92900] Cannot use member of packed struct in constexpr

2019-12-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92900 Jakub Jelinek changed: What|Removed |Added CC||nathan at gcc dot gnu.org --- Comment #3

[Bug c++/92900] Cannot use member of packed struct in constexpr

2019-12-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92900 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug c++/92900] Cannot use member of packed struct in constexpr

2019-12-10 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92900 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org S