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
This commit is contained in:
Jakub Jelinek 2019-06-10 18:18:52 +02:00 committed by Jakub Jelinek
parent 39d1184ba8
commit f2ee751da8
7 changed files with 19 additions and 6 deletions

View 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

View File

@ -303,11 +303,11 @@
#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

View File

@ -292,12 +292,12 @@
#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

View File

@ -2,6 +2,7 @@
#include <utility>
#include <tuple>
#include <functional>
#define LIFT_FWD(x) std::forward<decltype(x)>(x)

View File

@ -291,12 +291,12 @@
#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

View File

@ -3,6 +3,7 @@
#include <array>
#include <utility>
#include <stdexcept>
template<class Key, class T, size_t N> struct static_map

View 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 <