From: Marek Polacek Date: Thu, 28 May 2020 13:54:41 +0000 (-0400) Subject: c++: Fix initlist-array12.C X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4833c1adc3c7b125bf1c59e8bd8d802ac3b0d205;p=gcc.git c++: Fix initlist-array12.C * g++.dg/cpp0x/initlist-array12.C: Fix the definition of initializer_list for ilp32 target. --- diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist-array12.C b/gcc/testsuite/g++.dg/cpp0x/initlist-array12.C index b012e7295d5..168c5dd6492 100644 --- a/gcc/testsuite/g++.dg/cpp0x/initlist-array12.C +++ b/gcc/testsuite/g++.dg/cpp0x/initlist-array12.C @@ -1,10 +1,12 @@ // PR c++/95319 // { dg-do compile { target c++11 } } +typedef decltype(sizeof(char)) size_t; + namespace std { template class initializer_list { int *_M_array; - unsigned long _M_len; + size_t _M_len; }; template struct A { typedef int _Type[_Nm]; }; template struct B { typename A<_Nm>::_Type _M_elems; };