[LLVMbugs] [Bug 20524] New: Faulty code generation for -O2 when using custom allocator with fancy pointer
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Aug 3 17:22:24 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20524
Bug ID: 20524
Summary: Faulty code generation for -O2 when using custom
allocator with fancy pointer
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++1y
Assignee: unassignedclangbugs at nondot.org
Reporter: tkoeppe at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 12853
--> http://llvm.org/bugs/attachment.cgi?id=12853&action=edit
Custom allocator/pointer example that doesn't compile correctly with -O2
I have no particular insight in what's going on here, other than that there's a
very similar problem in GCC. Please see the attached code: Compiled with -O1 it
works, but with -O2 it is broken (the map doesn't contain the right content,
and Valgrind shows memory errors).
The code instantiates an std::map with a simple, custom allocator that uses a
fancy pointer.
--
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/20140804/1c011b34/attachment.html>
More information about the llvm-bugs
mailing list