[Bug c++/95384] Poor codegen cause by using base class instead of member for Optional construction
barry.revzin at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu May 28 14:17:39 GMT 2020
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"
More information about the Gcc-bugs
mailing list