https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127005
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |17.0
Status|ASSIGNED |RESOLVED
Known to fail| |7.1.0
--- Comment #8 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Fixed on the trunk. It does not look like a regression. the warning has been
there since optional was added in GCC 7.1.0. So closing as fixed.