libstdc++: Support arrays in std::is_nothrow_constructible (PR 94149)
authorJonathan Wakely <jwakely@redhat.com>
Tue, 21 Apr 2020 21:18:51 +0000 (22:18 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 21 Apr 2020 21:18:51 +0000 (22:18 +0100)
commitd76925e46fad09fc9be6759cbf1f23c9a8344dbf
tree1b7ff4a666d5b11aef097be62965d78e56f52a7a
parent81e07d422c5026ed66e3ad72a75d0d2385be1c0a
libstdc++: Support arrays in std::is_nothrow_constructible (PR 94149)

The front end now supports parenthesized initialization for arrays in
C++20, so extend std::is_nothrow_constructible to support them too.

gcc/testsuite:

PR c++/94149
* g++.dg/cpp2a/paren-init24.C: Fix FIXMEs.

libstdc++-v3:

PR c++/94149
* include/std/type_traits (__is_nt_constructible_impl): Add partial
specializations for bounded arrays with non-empty initializers.
* testsuite/20_util/is_nothrow_constructible/value_c++20.cc: New test.
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/paren-init24.C
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/type_traits
libstdc++-v3/testsuite/20_util/is_nothrow_constructible/value_c++20.cc [new file with mode: 0644]