http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59526

--- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Jonathan Wakely from comment #1)
> Trunk doesn't give the same errors, but fails two of the assertions:
> 
> n.cc:30:1: error: static assertion failed: 
>  static_assert(std::is_nothrow_constructible<X>::value, "");

The reason seems to be that the compiler makes this a deleted function, arguing 

"'X::X() noexcept' is implicitly deleted because its exception-specification
does not match the implicit exception-specification 'noexcept
(<uninstantiated>)' X() noexcept = default;"

This looks incorrect to me.

Reply via email to