Commit a44761a6 by Marek Polacek Committed by Jakub Jelinek

c++: Fix initlist-array12.C

	* g++.dg/cpp0x/initlist-array12.C: Fix the definition of
	initializer_list for ilp32 target.

(cherry picked from commit 4833c1adc3c7b125bf1c59e8bd8d802ac3b0d205)
parent b2229175
// PR c++/95319 // PR c++/95319
// { dg-do compile { target c++11 } } // { dg-do compile { target c++11 } }
typedef decltype(sizeof(char)) size_t;
namespace std { namespace std {
template <class> class initializer_list { template <class> class initializer_list {
int *_M_array; int *_M_array;
unsigned long _M_len; size_t _M_len;
}; };
template <int _Nm> struct A { typedef int _Type[_Nm]; }; template <int _Nm> struct A { typedef int _Type[_Nm]; };
template <int _Nm> struct B { typename A<_Nm>::_Type _M_elems; }; template <int _Nm> struct B { typename A<_Nm>::_Type _M_elems; };
......
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