<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 5, 2014 at 1:29 PM, Joerg Sonnenberger <span dir="ltr"><<a href="mailto:joerg@britannica.bec.de" target="_blank">joerg@britannica.bec.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Mon, May 05, 2014 at 11:46:37AM -0700, Richard Smith wrote:<br>
> __has_feature(noexcept) will only be true if we're in C++11-or-later mode,<br>
> because __has_feature looks for features that are part of the<br>
> currently-enabled language mode.<br>
<br>
</div>What about -fno-exceptions?</blockquote><div><br></div><div>-fno-exceptions doesn't affect whether you can specify an exception specification, but it does turn off checking of exception specifications, so I think it doesn't matter which path we go down if -fno-exceptions is specified. (It also doesn't affect the result of __has_feature(cxx_noexcept).)</div>
</div></div></div>