https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80335
--- Comment #3 from sgunderson at bigfoot dot com ---
Appears to have been fixed in GCC 8, indeed.
#include
std::optional func()
{
return 3;
}
GCC 7 (-O2) compiles to:
0: 48 89 f8mov%rdi,%rax
3: c7 07 03
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80335
Marc Glisse changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80335
sgunderson at bigfoot dot com changed:
What|Removed |Added
CC||sgunderson at bigfoot dot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80335
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|