https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95384
--- Comment #1 from Barry Revzin <barry.revzin at gmail dot com> --- Here's a simpler example: https://godbolt.org/z/FD7uEQ If the engaged member is an int instead of a bool (to remove the tail padding), gcc generates better code. This follows up on "PR 95383"