Commit f2ee751d by Jakub Jelinek Committed by Jakub Jelinek

re PR testsuite/90772 (g++.dg/cpp1y/feat-cxx14.C and several others fails starting with r272011)

	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
parent 39d1184b
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> 2019-06-10 Jonathan Wakely <jwakely@redhat.com>
PR other/90695 PR other/90695
......
...@@ -303,11 +303,11 @@ ...@@ -303,11 +303,11 @@
#if __has_include(<array>) #if __has_include(<array>)
# define STD_ARRAY 1 # define STD_ARRAY 1
# include <array> # include <array>
template<typename _Tp, size_t _Num> template<typename _Tp, std::size_t _Num>
using array = std::array<_Tp, _Num>; using array = std::array<_Tp, _Num>;
#elif __has_include(<tr1/array>) #elif __has_include(<tr1/array>)
# define TR1_ARRAY 1 # define TR1_ARRAY 1
# include <tr1/array> # include <tr1/array>
template<typename _Tp, size_t _Num> template<typename _Tp, std::size_t _Num>
typedef std::tr1::array<_Tp, _Num> array; typedef std::tr1::array<_Tp, _Num> array;
#endif #endif
...@@ -292,12 +292,12 @@ ...@@ -292,12 +292,12 @@
#if __has_include(<array>) #if __has_include(<array>)
# define STD_ARRAY 1 # define STD_ARRAY 1
# include <array> # include <array>
template<typename _Tp, size_t _Num> template<typename _Tp, std::size_t _Num>
using array = std::array<_Tp, _Num>; using array = std::array<_Tp, _Num>;
#elif __has_include(<tr1/array>) #elif __has_include(<tr1/array>)
# define TR1_ARRAY 1 # define TR1_ARRAY 1
# include <tr1/array> # include <tr1/array>
template<typename _Tp, size_t _Num> template<typename _Tp, std::size_t _Num>
typedef std::tr1::array<_Tp, _Num> array; typedef std::tr1::array<_Tp, _Num> array;
#endif #endif
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include <utility> #include <utility>
#include <tuple> #include <tuple>
#include <functional>
#define LIFT_FWD(x) std::forward<decltype(x)>(x) #define LIFT_FWD(x) std::forward<decltype(x)>(x)
......
...@@ -291,12 +291,12 @@ ...@@ -291,12 +291,12 @@
#if __has_include(<array>) #if __has_include(<array>)
# define STD_ARRAY 1 # define STD_ARRAY 1
# include <array> # include <array>
template<typename _Tp, size_t _Num> template<typename _Tp, std::size_t _Num>
using array = std::array<_Tp, _Num>; using array = std::array<_Tp, _Num>;
#elif __has_include(<tr1/array>) #elif __has_include(<tr1/array>)
# define TR1_ARRAY 1 # define TR1_ARRAY 1
# include <tr1/array> # include <tr1/array>
template<typename _Tp, size_t _Num> template<typename _Tp, std::size_t _Num>
typedef std::tr1::array<_Tp, _Num> array; typedef std::tr1::array<_Tp, _Num> array;
#endif #endif
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <array> #include <array>
#include <utility> #include <utility>
#include <stdexcept>
template<class Key, class T, size_t N> struct static_map template<class Key, class T, size_t N> struct static_map
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// { dg-options "-O2 -std=gnu++11 -fdump-tree-optimized" } */ // { dg-options "-O2 -std=gnu++11 -fdump-tree-optimized" } */
#include <array> #include <array>
#include <cstdint>
// Return a copy of the underlying memory of an arbitrary value. // Return a copy of the underlying memory of an arbitrary value.
template < template <
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment