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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs