On Mon, May 5, 2014 at 1:29 PM, Joerg Sonnenberger
<[email protected]>wrote:

> On Mon, May 05, 2014 at 11:46:37AM -0700, Richard Smith wrote:
> > __has_feature(noexcept) will only be true if we're in C++11-or-later
> mode,
> > because __has_feature looks for features that are part of the
> > currently-enabled language mode.
>
> What about -fno-exceptions?


-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).)
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to