[llvm-bugs] [Bug 31021] New: 1 << 63 not accepted for 64-bit enum value

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 15 04:18:20 PST 2016


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

            Bug ID: 31021
           Summary: 1 << 63 not accepted for 64-bit enum value
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: avasilev at gmx.net
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

The following code does not compile under any clang version, but compiles on
gcc and MSVC:

enum: long long { test = 1 << 63};

int main()
{}

-- 
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/20161115/7d260cc2/attachment.html>


More information about the llvm-bugs mailing list