<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - pointer_traits::__to_raw_pointer does not respect allocator requirements (for void operator->())"
href="http://llvm.org/bugs/show_bug.cgi?id=20518">20518</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>pointer_traits::__to_raw_pointer does not respect allocator requirements (for void operator->())
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tkoeppe@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The allocator requirements say that X::pointer::operator-> only needs to work
for object pointers, not for X::void_pointer.
However, in libc++'s implementation of pointer_traits::__to_raw_pointer
(currently in memory:1051), operator->() is called regardless of the pointer
type. Thus this code does not compile if given a conforming fancy pointer whose
void specialization does not implement operator->.
(This is actually a plausible situation: A reasonable implementation would have
a base class that does not overload any accessor operators, and only provide
those implementations in non-void specializations of a derived class.)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>