projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b1932a
)
c++: Fix initlist-array12.C
author
Marek Polacek
<polacek@redhat.com>
Thu, 28 May 2020 13:54:41 +0000
(09:54 -0400)
committer
Marek Polacek
<polacek@redhat.com>
Thu, 28 May 2020 15:20:57 +0000
(11:20 -0400)
* g++.dg/cpp0x/initlist-array12.C: Fix the definition of
initializer_list for ilp32 target.
gcc/testsuite/g++.dg/cpp0x/initlist-array12.C
patch
|
blob
|
history
diff --git
a/gcc/testsuite/g++.dg/cpp0x/initlist-array12.C
b/gcc/testsuite/g++.dg/cpp0x/initlist-array12.C
index b012e7295d50203c3306a22576d8f38219e95d25..168c5dd6492af2f75bff274a1869fc5edfa6dc1f 100644
(file)
--- 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> class initializer_list {
int *_M_array;
-
unsigned long
_M_len;
+
size_t
_M_len;
};
template <int _Nm> struct A { typedef int _Type[_Nm]; };
template <int _Nm> struct B { typename A<_Nm>::_Type _M_elems; };