[llvm-bugs] [Bug 46279] Unnecessary branch with -fstrict-enums

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 11 13:12:58 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46279

Eli Friedman <efriedma at quicinc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |efriedma at quicinc.com
         Resolution|---                         |INVALID

--- Comment #1 from Eli Friedman <efriedma at quicinc.com> ---
This is working as intended.  From C++ [dcl.enum]: "the values of the
enumeration are the values representable by a hypothetical integer type with
minimal width M such that all enumerators can be represented."

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200611/70bade8d/attachment.html>


More information about the llvm-bugs mailing list