[LLVMbugs] [Bug 16755] New: constexpr evaluation doesn't correctly truncate bitfield values
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 30 12:52:49 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16755
Bug ID: 16755
Summary: constexpr evaluation doesn't correctly truncate
bitfield values
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: sharparrow1 at yahoo.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
richard-llvm at metafoo.co.uk
Classification: Unclassified
Testcase:
struct X {
int x : 1;
constexpr static int f(int x) {
return X{x}.x;
}
};
static_assert(X::f(3) == -1, "3 should truncate to -1");
--
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/20130730/2023d42c/attachment.html>
More information about the llvm-bugs
mailing list