[Bug c++/91950] -Wreturn-type false positive due to CWG 1766

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 1 15:43:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91950

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The range of values of a scoped enumeration type is the range of values of its
underlying type. The underlying type here is int, so any value of type int is a
valid value of type foo.


More information about the Gcc-bugs mailing list