<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 05/07/2013 07:28 PM, David Blaikie
wrote:<br>
</div>
<blockquote
cite="mid:CAENS6EsfzHok4mAzCT7GQwK38PaWM1tZSzkhZPxH4p-xjO8igg@mail.gmail.com"
type="cite">
<p dir="ltr">Seems reasonable to me. Please file a bug at <a
moz-do-not-send="true" href="http://llvm.org/bugs">llvm.org/bugs</a></p>
</blockquote>
<br>
Filed <a class="moz-txt-link-freetext" href="http://llvm.org/bugs/show_bug.cgi?id=15934">http://llvm.org/bugs/show_bug.cgi?id=15934</a><br>
<br>
Explanation from Howard Hinnant
(<a class="moz-txt-link-freetext" href="http://llvm.org/bugs/show_bug.cgi?id=15934#c1">http://llvm.org/bugs/show_bug.cgi?id=15934#c1</a>):<br>
<br>
<blockquote type="cite">
<pre class="bz_comment_text" id="comment_text_1">libc++ has made no attempt to adhere to C++03, only to C++11. And unfortunately this detail is a specification that has changed between C++03 and C++11.
The sentence you quote has been removed from this paragraph, which is now 22.4.2.1.2p1 [facet.num.get.virtuals].
Additionally in the same section Stage 3 now says in part:
The numeric value to be stored can be one of:
* zero, if the conversion function fails to convert the entire field.
ios_base::failbit is assigned to err.
So libc++ does conform to C++11, but not C++03. At this time we have no plans to modify libc++ to strictly adhere to the C++03 standard.</pre>
</blockquote>
<br>
BTW, file the same case against latest libstdc++ --
<a class="moz-txt-link-freetext" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57213">http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57213</a><br>
</body>
</html>