<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 15.03.2011, at 12:02, Sebastian Redl wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div bgcolor="#ffffff" text="#000000">
On 15.03.2011 11:36, Jean-Daniel Dupas wrote:
<blockquote cite="mid:A867EEF1-E89F-448D-930C-6F6F0C0603A0@shadowlab.org" type="cite">Hello,
<div><br>
</div>
<div>After the commit r127596, it's not longer possible to use the
gcc 4.2.1 libstdc++ while compiling c++0x code.</div>
<div><br>
</div>
<div>For instance, just including <span class="Apple-style-span" style="color: rgb(123, 72, 47); font-family: Menlo; font-size:
11px;"><span style="color: rgb(217, 40, 35);"><vector></span><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="background-color: transparent; font-size: 12px;">
in a file make clang emit the following diagnostics.</span></font></span></div>
<div><br>
</div>
<div><span class="Apple-style-span" style="font-size: 12px; ">/usr/include/c++/4.2.1/new:95:7:
error: exception specification in declaration does not match
previous declaration</span></div><div>
<div style="margin: 0px; font: 12px Helvetica;">void* operator
new(std::size_t) throw (std::bad_alloc);</div>
<div style="margin: 0px; font: 12px Helvetica;"> ^</div>
<div style="margin: 0px; font: 12px Helvetica;"><span class="Apple-style-span" style="font-size: medium;"><br></span></div>
<div>I suppose this is a problem with libstdc++ 4.2.1 which is
not standard compliant, but as it is widely used on OS X,
maybe clang should do something to workaround the problem.</div>
<br>
</div>
</blockquote>
Yes, yes it should. That occurred to me too. The change in new's
throw spec can definitely be a problem.<br></div></blockquote></div><br><div>I implemented a workaround in r127688 and r127692.</div><div><br></div><div>Sebastian</div></body></html>