Re: [PATCH] PR c++/90532 Ensure __is_constructible(T[]) is false

2019-05-20 Thread Jonathan Wakely
On 20/05/19 07:29 -0400, Nathan Sidwell wrote: 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 chang

Re: [PATCH] PR c++/90532 Ensure __is_constructible(T[]) is false

2019-05-20 Thread Nathan Sidwell
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 us

[PATCH] PR c++/90532 Ensure __is_constructible(T[]) is false

2019-05-20 Thread Jonathan Wakely
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