[LLVMbugs] [Bug 23247] New: L-values produced by casts to volatile references aren't tracked as volatile
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 15 19:04:02 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23247
Bug ID: 23247
Summary: L-values produced by casts to volatile references
aren't tracked as volatile
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: rjmccall at apple.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
static int global = 4;
int main() {
const_cast<volatile int &>(global) = 4;
}
IRGen marks this store volatile if the cast is a reinterpret_cast, but not if
it's a static_cast, const_cast, or C-style cast.
Storing to the dereferenced result of casting to a volatile pointer type seems
to work in all cases.
--
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/20150416/c8b2b1c2/attachment.html>
More information about the llvm-bugs
mailing list