On 09/21/16 21:57, Christophe Lyon wrote: > Hi, > > The new testcase pr77550.C fails on arm: > /testsuite/g++.dg/pr77550.C:39:43: error: 'operator new' takes type > 'size_t' ('unsigned int') as first parameter [-fpermissive] > compiler exited with status 1 > > Christophe >
Yes, I see, thanks. This should fix it. OK for trunk, gcc-6 after a while ? Bernd.
2016-09-21 Bernd Edlinger <bernd.edlin...@hotmail.de> * g++.dg/pr77550.C: Use __SIZE_TYPE__. Index: gcc/testsuite/g++.dg/pr77550.C =================================================================== --- gcc/testsuite/g++.dg/pr77550.C (revision 240330) +++ gcc/testsuite/g++.dg/pr77550.C (working copy) @@ -36,7 +36,7 @@ struct B { template <typename, typename> using __ptr_rebind = B; template <typename _Tp> _Tp max(_Tp p1, _Tp) { return p1; } } -void *operator new(unsigned long, void *p2) { return p2; } +void *operator new(__SIZE_TYPE__, void *p2) { return p2; } template <typename _Tp> struct C { typedef _Tp *pointer; pointer allocate(int p1) { @@ -47,7 +47,7 @@ template <typename _Tp> struct C { namespace std { template <typename _Tp> using __allocator_base = C<_Tp>; template <typename _Tp> struct allocator : __allocator_base<_Tp> { - typedef unsigned long size_type; + typedef __SIZE_TYPE__ size_type; template <typename _Tp1> struct rebind { typedef allocator<_Tp1> other; }; }; struct D {