https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89151
--- Comment #5 from Csaba Ráduly ---
Appears to be fixed in GCC 8.3.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89151
--- Comment #4 from Csaba Ráduly ---
As I said, GCC trunk (9) can compile this example.
Did you check with the released 8.2.0 ?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89151
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89151
--- Comment #2 from Csaba Ráduly ---
Commenting out the non-optional operator GetWhat makes GCC 8.2.0 compile the
example as written. However, that operator is needed if struct R is changed to
struct R {
boost::optional password;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89151
--- Comment #1 from Csaba Ráduly ---
Created attachment 45585
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45585&action=edit
preprocessor output from -save-temps