re PR testsuite/90772 (g++.dg/cpp1y/feat-cxx14.C and several others fails starting...
authorJakub Jelinek <jakub@redhat.com>
Mon, 10 Jun 2019 16:18:52 +0000 (18:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 10 Jun 2019 16:18:52 +0000 (18:18 +0200)
PR testsuite/90772
* g++.dg/cpp1y/feat-cxx14.C: Use std::size_t instead of size_t.
* g++.dg/cpp1z/feat-cxx1z.C: Likewise.
* g++.dg/cpp2a/feat-cxx2a.C: Likewise.
* g++.dg/cpp1z/pr85569.C: Include <functional>.
* g++.dg/tree-ssa/pr80293.C: Include <cstdint>.
* g++.dg/tree-ssa/pr69336.C: Include <stdexcept>.

From-SVN: r272122

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
gcc/testsuite/g++.dg/cpp1z/pr85569.C
gcc/testsuite/g++.dg/cpp2a/feat-cxx2a.C
gcc/testsuite/g++.dg/tree-ssa/pr69336.C
gcc/testsuite/g++.dg/tree-ssa/pr80293.C

index ede0ec50a314bd64427f4f07ce6027f420c0e76f..6a1967f8211ac6ae29a9fd4eed1b5f233d432068 100644 (file)
@@ -1,3 +1,13 @@
+2019-06-10  Jakub Jelinek  <jakub@redhat.com>
+
+       PR testsuite/90772
+       * g++.dg/cpp1y/feat-cxx14.C: Use std::size_t instead of size_t.
+       * g++.dg/cpp1z/feat-cxx1z.C: Likewise.
+       * g++.dg/cpp2a/feat-cxx2a.C: Likewise.
+       * g++.dg/cpp1z/pr85569.C: Include <functional>.
+       * g++.dg/tree-ssa/pr80293.C: Include <cstdint>.
+       * g++.dg/tree-ssa/pr69336.C: Include <stdexcept>.
+
 2019-06-10  Jonathan Wakely  <jwakely@redhat.com>
 
        PR other/90695
index 412b9a33b8f46456b0ebec369a2167d645754e44..a2a93f437b3441b20d04709b2511bed3396b68c9 100644 (file)
 #if __has_include(<array>)
 #  define STD_ARRAY 1
 #  include <array>
-  template<typename _Tp, size_t _Num>
+  template<typename _Tp, std::size_t _Num>
     using array = std::array<_Tp, _Num>;
 #elif __has_include(<tr1/array>)
 #  define TR1_ARRAY 1
 #  include <tr1/array>
-  template<typename _Tp, size_t _Num>
+  template<typename _Tp, std::size_t _Num>
     typedef std::tr1::array<_Tp, _Num> array;
 #endif
index da372dca8cb1ca7aac34d144dcb3a623a34a1d11..a5d94462c870702dd3ede53e86b551c084de251d 100644 (file)
 #if __has_include(<array>)
 #  define STD_ARRAY 1
 #  include <array>
-  template<typename _Tp, size_t _Num>
+  template<typename _Tp, std::size_t _Num>
     using array = std::array<_Tp, _Num>;
 #elif __has_include(<tr1/array>)
 #  define TR1_ARRAY 1
 #  include <tr1/array>
-  template<typename _Tp, size_t _Num>
+  template<typename _Tp, std::size_t _Num>
     typedef std::tr1::array<_Tp, _Num> array;
 #endif
 
index aec543041a0f4c7ed2b0d591551e4aa5a9c5e587..fae13d8ff22782ade1057325bbe5d63a7dacffab 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <utility>
 #include <tuple>
+#include <functional>
 
 #define LIFT_FWD(x) std::forward<decltype(x)>(x)
 
index 8ee7b82914b5fc51a43a23ae2a7795f661e02100..086109adbf220886f361d1f755ecae79320f18aa 100644 (file)
 #if __has_include(<array>)
 #  define STD_ARRAY 1
 #  include <array>
-  template<typename _Tp, size_t _Num>
+  template<typename _Tp, std::size_t _Num>
     using array = std::array<_Tp, _Num>;
 #elif __has_include(<tr1/array>)
 #  define TR1_ARRAY 1
 #  include <tr1/array>
-  template<typename _Tp, size_t _Num>
+  template<typename _Tp, std::size_t _Num>
     typedef std::tr1::array<_Tp, _Num> array;
 #endif
 
index 3bddba131579e0ddbcc69370dfd88d56ad224572..c946176bfdaed3895fd5cbb89dd084b358dcc64a 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <array>
 #include <utility>
+#include <stdexcept>
 
 
 template<class Key, class T, size_t N> struct static_map
index 7faf35ae98319127432be046034970b94b4503f3..cfdea084c9ff7a4d89b81b33177099324cb8ae82 100644 (file)
@@ -2,6 +2,7 @@
 // { dg-options "-O2 -std=gnu++11 -fdump-tree-optimized" } */
 
 #include <array>
+#include <cstdint>
 
 // Return a copy of the underlying memory of an arbitrary value.
 template <