Fwd: [Bug libstdc++/90276] PSTL tests fail in Debug Mode

François Dumont frs.dumont@gmail.com
Wed Jan 31 18:17:49 GMT 2024


I replied to bugzilla rather than sending to proper mailing list !

At the same time it looks like you also found the root cause of the 
problem Jonathan. Just let me know if you want to deal with it eventually.

François


-------- Forwarded Message --------
Subject: 	Re: [Bug libstdc++/90276] PSTL tests fail in Debug Mode
Date: 	Wed, 31 Jan 2024 19:09:02 +0100
From: 	François Dumont <frs.dumont@gmail.com>
To: 	redi at gcc dot gnu.org <gcc-bugzilla@gcc.gnu.org>, 
fdumont@gcc.gnu.org



Here is the reason of the 
20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc FAIL.

Maybe it fixes some other tests too, I need to run all of them.

     libstdc++: Do not forward arguments several times [PR90276]

     Forwarding several times the same arguments results in UB. It is 
detected
     by the _GLIBCXX_DEBUG mode as an attempt to use a singular iterator 
which has
     been moved.

     libstdc++-v3/ChangeLog

             PR libstdc++/90276
             * testsuite/util/pstl/test_utils.h: Remove std::forward<> 
calls when
             done several times on the same arguments.

Ok to commit ?

François


On 31/01/2024 14:11, redi at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90276
>
> Jonathan Wakely <redi at gcc dot gnu.org> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> See Also| |https://github.com/llvm/llv
> | |m-project/issues/80136
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20240131/96303cfd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pstl_test_utils.h.patch
Type: text/x-patch
Size: 2216 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20240131/96303cfd/attachment.bin>


More information about the Libstdc++ mailing list