[llvm-bugs] [Bug 24938] New: constexpr variables do not accept bitshift with results of constexpr functions

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 25 08:27:27 PDT 2015


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

            Bug ID: 24938
           Summary: constexpr variables do not accept bitshift with
                    results of constexpr functions
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: g11242930 at trbvm.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Here's what I got from terminal trying to find out version: 
clang --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

Took a guess it's 3.6, so that's what I've chosen.

Here's the minimal code that shows what I've been trying to compile on my
notebook: http://pastebin.com/hxi4Y1T6

The error itself is mentioned in the comments. At first I thought it was Xcode
being stupid and not allowing the code to even meet the compiler. Then I've
tried to manually compile it with g++ and discovered that instead of g++ I have
some kind of g++->clang proxy (not sure how to call it, basically its a program
named g++, that accepts the same arguments and then calls clang instead), and
clang threw me the same error.

It's worth mentioning that everything there is known in compile-time and the
code compiles on my android (which uses g++) perfectly fine.

-- 
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/20150925/fe71b721/attachment.html>


More information about the llvm-bugs mailing list