[LLVMbugs] [Bug 15621] New: __builtin_popcount should be constexpr
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 28 17:09:15 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15621
Bug ID: 15621
Summary: __builtin_popcount should be constexpr
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: steveire at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
switch(argc)
{
case __builtin_popcountll(2):
return 1;
default:
return 0;
}
$ g++ -std=c++11 main.cpp
$ clang++ -std=c++11 main.cpp
main.cpp:228:10: error: case value is not a constant expression
case __builtin_popcountll(2):
^
1 error generated.
--
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/20130329/d5c9ffdc/attachment.html>
More information about the llvm-bugs
mailing list