https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87950
Arsen Arsenović <arsen at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arsen at gcc dot gnu.org
--- Comment #16 from Arsen Arsenović <arsen at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #14)
> It would certainly be possible to recognize this situation (all enumerators
> handled) and suppress the -Wreturn-type warning even though we can't in
> general assume that we can't get other values of the enumeration. With the
> ability to explicitly request warnings in this situation with another flag.
> I don't know how much work that would be.
can't we assume that following the aforementioned
https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1766 ? at least
in C++>=17 (and, this bug should either be hijacked or remade for C++,
probably)