]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix more tests that fail in C++2a mode
authorJonathan Wakely <jwakely@redhat.com>
Thu, 24 Oct 2019 12:54:40 +0000 (13:54 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 24 Oct 2019 12:54:40 +0000 (13:54 +0100)
Backport from mainline
2019-06-06  Jonathan Wakely  <jwakely@redhat.com>

* testsuite/23_containers/unordered_map/requirements/debug_container.cc:
Do not test allocator rebinding extension for C++2a.
* testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
dg-do directive for C++17 and C++2a.

From-SVN: r277385

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/23_containers/unordered_map/requirements/debug_container.cc
libstdc++-v3/testsuite/23_containers/unordered_set/allocator/ext_ptr.cc

index 256d5d7aa205c101d4fd2a716c27b928f020506c..ca192d1bd63d6145e27a48c566f2a2d13f5b3818 100644 (file)
@@ -1,5 +1,13 @@
 2019-10-24  Jonathan Wakely  <jwakely@redhat.com>
 
+       Backport from mainline
+       2019-06-06  Jonathan Wakely  <jwakely@redhat.com>
+
+       * testsuite/23_containers/unordered_map/requirements/debug_container.cc:
+       Do not test allocator rebinding extension for C++2a.
+       * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
+       dg-do directive for C++17 and C++2a.
+
        Backport from mainline
        2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
 
index d6afae9c2e9a6818f48dad342427ff7efd67e5fa..903802878d7e504729a116282fe91ee27aff83de 100644 (file)
@@ -30,7 +30,7 @@ template class __gnu_debug::unordered_map<string, float>;
 template class __gnu_debug::unordered_map<string, int,
                                           hash<string>, equal_to<string>, 
                                           allocator<pair<const string, int>>>;
-#ifndef __STRICT_ANSI__
+#if !defined __STRICT_ANSI__ && __cplusplus <= 201703L
 template class __gnu_debug::unordered_map<string, float,
                                           hash<string>, equal_to<string>, 
                                           allocator<char>>;
index 5daa456e44007d388436b79e9828aab3dc3b8ea2..b7a63c5e3930761df66065ddb3fbd9fabaf63c3d 100644 (file)
@@ -15,7 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do run { target c++11 } }
+// { dg-do run { target { c++11_only || c++14_only } } }
+// { dg-do compile { target c++17 } }
 
 #include <unordered_set>
 #include <memory>