From 993deb3a9a4eb78b05587f9b2f9d83a4ccc60c74 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 18 Mar 2024 16:59:50 +0000 Subject: 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. --- gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc') 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 } -- cgit v1.1