<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 --- - Unable to detect operator>> (extraction operator) using libc++"
href="http://llvm.org/bugs/show_bug.cgi?id=19460">19460</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unable to detect operator>> (extraction operator) using libc++
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>lachlan.hetherton@csiro.au
</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>Created <span class=""><a href="attachment.cgi?id=12390" name="attach_12390" title="Test file: compile this to reproduce the issue.">attachment 12390</a> <a href="attachment.cgi?id=12390&action=edit" title="Test file: compile this to reproduce the issue.">[details]</a></span>
Test file: compile this to reproduce the issue.
We have been using some code for a number of years now to detect whether the
streaming operators (operator<< and operator>>) exist on a given class. I've
recently updated one of our machines to OSX 10.9, which uses Clang 3.4 and
libc++ by default, and now our operator>> detection code no longer compiles. If
I explicitly enable libstdc++ however, it still compiles.
It may well be that our code no longer meets a new stringent requirement of the
c++11 standard (keep in mind that we're not yet targeting this: -std=c++11 is
not enabled), and if so, please feel free to point out my glaring error!
I've attached a very cut-down example of the affected code. To reproduce the
issue:
1) Compile the attached cpp file with clang++ v3.4 as follows:
clang++ extraction_test.cpp
2) You'll notice that it fails. To confirm that it works with the stdc++
library, compile as follows:
clang++ -stdlib=libstdc++ extraction_test.cpp
I apologise if this is something new and / or obvious - I'm new to compiling on
anything other than GCC / MSVC, but I thought it best to raise this issue in
case there was a genuine problem in the new libc++ library that may affect
others trying to implement this kind of functionality.
Regards,
Lachlan Hetherton</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>