<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - constexpr variables do not accept bitshift with results of constexpr functions"
href="https://llvm.org/bugs/show_bug.cgi?id=24938">24938</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>constexpr variables do not accept bitshift with results of constexpr functions
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++11
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>g11242930@trbvm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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: <a href="http://pastebin.com/hxi4Y1T6">http://pastebin.com/hxi4Y1T6</a>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>