aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-03-18 16:59:50 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2024-10-09 13:39:15 +0100
commit993deb3a9a4eb78b05587f9b2f9d83a4ccc60c74 (patch)
tree0fbd52f636751a2242cb282a0476b187c38036c3 /gcc
parentce89d2f3170e0d6474cee2c5cb9d478426a5b2f6 (diff)
downloadgcc-993deb3a9a4eb78b05587f9b2f9d83a4ccc60c74.zip
gcc-993deb3a9a4eb78b05587f9b2f9d83a4ccc60c74.tar.gz
gcc-993deb3a9a4eb78b05587f9b2f9d83a4ccc60c74.tar.bz2
libstdc++: Make std::construct_at support arrays (LWG 3436)
The issue was approved at the recent St. Louis meeting, requiring support for bounded arrays, but only without arguments to initialize the array elements. libstdc++-v3/ChangeLog: * include/bits/stl_construct.h (construct_at): Support array types (LWG 3436). * testsuite/20_util/specialized_algorithms/construct_at/array.cc: New test. * testsuite/20_util/specialized_algorithms/construct_at/array_neg.cc: New test. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/initlist-opt1.C: Adjust for different diagnostics from std::construct_at by adding -fconcepts-diagnostics-depth=2.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C b/gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C
index 391b7c4..38c4f00 100644
--- a/gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C
+++ b/gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C
@@ -1,5 +1,6 @@
// PR c++/110102
// { dg-do compile { target c++11 } }
+// { dg-additional-options "-fconcepts-diagnostics-depth=2" { target c++20 } }
// { dg-skip-if "requires hosted libstdc++ for list" { ! hostedlib } }
// { dg-error "deleted|construct_at" "" { target *-*-* } 0 }