30_threads/thread/native_handle/typesizes.cc is no good

Iain Sandoe idsandoe@googlemail.com
Fri May 10 14:20:00 GMT 2019


> On 10 May 2019, at 14:57, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> 
> Resending as plaint text so the lists don't reject it …
> 

>> In order to test what it should, we'd need to use an alternate test
>> function that does not strip off one indirection level from
>> native_handle_type, if the test is to remain.
>> 
> 
> Or just adapt the current test to work for the std::thread case too, by
> only removing the pointer when we know we need to remove it, as in the
> attached patch. Does this work on targets using a pointer type for
> pthread_t?

this will fix PR81266, if so, will add to my next run.

Iain



More information about the Libstdc++ mailing list