[PATCH] PR c++/90532 Ensure __is_constructible(T[]) is false
Nathan Sidwell
nathan@acm.org
Mon May 20 11:29:00 GMT 2019
On 5/20/19 6:43 AM, Jonathan Wakely wrote:
> An array of an unknown bound is an incomplete type, so no object of such
> a type can be constructed. This means __is_constructible should always
> be false for an array of unknown bound.
>
> This patch also changes the std::is_default_constructible trait to use
> std::is_constructible, which now gives the right answer for arrays of
> unknown bound.
>
> gcc/cp:
>
> Â Â Â Â PR c++/90532 Ensure __is_constructible(T[]) is false
> Â Â Â Â * method.c (is_xible_helper): Return error_mark_node for construction
> Â Â Â Â of an array of unknown bound.
ok, thanks
--
Nathan Sidwell
More information about the Libstdc++
mailing list