public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/91456] std::function and std::is_invocable_r do not understand guaranteed elision
[not found] <bug-91456-4@http.gcc.gnu.org/bugzilla/>
@ 2022-05-09 16:29 ` hewillk at gmail dot com
2022-09-21 14:03 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: hewillk at gmail dot com @ 2022-05-09 16:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91456
康桓瑋 <hewillk at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hewillk at gmail dot com
--- Comment #6 from 康桓瑋 <hewillk at gmail dot com> ---
(In reply to Jonathan Wakely from comment #5)
> Fixed for 9.3 too.
Should is_nothrow_invocable_r be fixed too?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/91456] std::function and std::is_invocable_r do not understand guaranteed elision
[not found] <bug-91456-4@http.gcc.gnu.org/bugzilla/>
2022-05-09 16:29 ` [Bug libstdc++/91456] std::function and std::is_invocable_r do not understand guaranteed elision hewillk at gmail dot com
@ 2022-09-21 14:03 ` cvs-commit at gcc dot gnu.org
2022-09-24 0:07 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-21 14:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91456
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:5814816641389dd76153aae63e8ccb67a1a9a321
commit r13-2764-g5814816641389dd76153aae63e8ccb67a1a9a321
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Sep 21 14:59:18 2022 +0100
libstdc++: Fix accidental duplicate test [PR91456]
It looks like I committed the testcase for std::function twice, instead
of one for std::function and one for std::is_invocable_r. This replaces
the is_invocable_r one with the example from the PR.
libstdc++-v3/ChangeLog:
PR libstdc++/91456
* testsuite/20_util/function/91456.cc: Add comment with PR
number.
* testsuite/20_util/is_invocable/91456.cc: Likewise. Replace
std::function checks with std::is_invocable_r checks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/91456] std::function and std::is_invocable_r do not understand guaranteed elision
[not found] <bug-91456-4@http.gcc.gnu.org/bugzilla/>
2022-05-09 16:29 ` [Bug libstdc++/91456] std::function and std::is_invocable_r do not understand guaranteed elision hewillk at gmail dot com
2022-09-21 14:03 ` cvs-commit at gcc dot gnu.org
@ 2022-09-24 0:07 ` cvs-commit at gcc dot gnu.org
2022-09-24 9:38 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-24 0:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91456
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:71c828f84572d933979468baf2cf744180258ee4
commit r13-2825-g71c828f84572d933979468baf2cf744180258ee4
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Sep 23 13:28:37 2022 +0100
libstdc++: Fix std::is_nothrow_invocable_r for uncopyable prvalues
[PR91456]
This is the last missing piece of PR 91456.
This also removes the only use of the C++11 version of
std::is_nothrow_invocable, which was just renamed to
__is_nothrow_invocable_lib. We can remove that now.
libstdc++-v3/ChangeLog:
PR libstdc++/91456
* include/std/type_traits (__is_nothrow_invocable_lib): Remove.
(__is_invocable_impl::__nothrow_type): New member type which
checks if the conversion can throw.
(__is_nt_invocable_impl): Replace class template with alias
template to __is_nt_invocable_impl::__nothrow_type.
* testsuite/20_util/is_nothrow_invocable/91456.cc: New test.
* testsuite/20_util/is_nothrow_convertible/value.cc: Remove
macro used by value_ext.cc test.
* testsuite/20_util/is_nothrow_convertible/value_ext.cc: Remove
test for non-standard __is_nothrow_invocable_lib trait.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/91456] std::function and std::is_invocable_r do not understand guaranteed elision
[not found] <bug-91456-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2022-09-24 0:07 ` cvs-commit at gcc dot gnu.org
@ 2022-09-24 9:38 ` redi at gcc dot gnu.org
2022-11-24 16:36 ` cvs-commit at gcc dot gnu.org
2023-05-16 12:50 ` cvs-commit at gcc dot gnu.org
5 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-09-24 9:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91456
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to 康桓瑋 from comment #6)
> Should is_nothrow_invocable_r be fixed too?
Yes, and that's been done at last. Thanks for pointing it out.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/91456] std::function and std::is_invocable_r do not understand guaranteed elision
[not found] <bug-91456-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2022-09-24 9:38 ` redi at gcc dot gnu.org
@ 2022-11-24 16:36 ` cvs-commit at gcc dot gnu.org
2023-05-16 12:50 ` cvs-commit at gcc dot gnu.org
5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-11-24 16:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91456
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:db206f15f7091382cb981ade3c75f4c3e3559ab8
commit r12-8930-gdb206f15f7091382cb981ade3c75f4c3e3559ab8
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Sep 23 13:28:37 2022 +0100
libstdc++: Fix std::is_nothrow_invocable_r for uncopyable prvalues
[PR91456]
This is the last missing piece of PR 91456.
This also removes the only use of the C++11 version of
std::is_nothrow_invocable.
libstdc++-v3/ChangeLog:
PR libstdc++/91456
* include/std/type_traits (__is_nothrow_invocable): Remove.
(__is_invocable_impl::__nothrow_type): New member type which
checks if the conversion can throw.
(__is_nt_invocable_impl): Replace class template with alias
template to __is_nt_invocable_impl::__nothrow_type.
* testsuite/20_util/is_nothrow_invocable/91456.cc: New test.
* testsuite/20_util/is_nothrow_convertible/value.cc: Remove
macro used by value_ext.cc test.
* testsuite/20_util/is_nothrow_convertible/value_ext.cc: Remove
test for non-standard __is_nothrow_invocable trait.
(cherry picked from commit 71c828f84572d933979468baf2cf744180258ee4)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/91456] std::function and std::is_invocable_r do not understand guaranteed elision
[not found] <bug-91456-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2022-11-24 16:36 ` cvs-commit at gcc dot gnu.org
@ 2023-05-16 12:50 ` cvs-commit at gcc dot gnu.org
5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-05-16 12:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91456
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:5c02a8eca7bcbe0ee021eddd5f764e8bfcb13b03
commit r11-10775-g5c02a8eca7bcbe0ee021eddd5f764e8bfcb13b03
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Sep 23 13:28:37 2022 +0100
libstdc++: Fix std::is_nothrow_invocable_r for uncopyable prvalues
[PR91456]
This is the last missing piece of PR 91456.
This also removes the only use of the C++11 version of
std::is_nothrow_invocable.
libstdc++-v3/ChangeLog:
PR libstdc++/91456
* include/std/type_traits (__is_nothrow_invocable): Remove.
(__is_invocable_impl::__nothrow_type): New member type which
checks if the conversion can throw.
(__is_nt_invocable_impl): Replace class template with alias
template to __is_nt_invocable_impl::__nothrow_type.
* testsuite/20_util/is_nothrow_invocable/91456.cc: New test.
* testsuite/20_util/is_nothrow_convertible/value.cc: Remove
macro used by value_ext.cc test.
* testsuite/20_util/is_nothrow_convertible/value_ext.cc: Remove
test for non-standard __is_nothrow_invocable trait.
(cherry picked from commit 71c828f84572d933979468baf2cf744180258ee4)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-05-16 12:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-91456-4@http.gcc.gnu.org/bugzilla/>
2022-05-09 16:29 ` [Bug libstdc++/91456] std::function and std::is_invocable_r do not understand guaranteed elision hewillk at gmail dot com
2022-09-21 14:03 ` cvs-commit at gcc dot gnu.org
2022-09-24 0:07 ` cvs-commit at gcc dot gnu.org
2022-09-24 9:38 ` redi at gcc dot gnu.org
2022-11-24 16:36 ` cvs-commit at gcc dot gnu.org
2023-05-16 12:50 ` cvs-commit at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).