* [Bug c++/105406] coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists
2022-04-27 12:28 [Bug c++/105406] New: coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists dvratil at kde dot org
@ 2022-04-27 12:29 ` dvratil at kde dot org
2022-04-27 12:36 ` [Bug c++/105406] [11/12 Regression] " rguenth at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dvratil at kde dot org @ 2022-04-27 12:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105406
--- Comment #1 from Daniel Vrátil <dvratil at kde dot org> ---
Link to godbolt: https://godbolt.org/z/MecdTEzMT
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/105406] [11/12 Regression] coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists
2022-04-27 12:28 [Bug c++/105406] New: coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists dvratil at kde dot org
2022-04-27 12:29 ` [Bug c++/105406] " dvratil at kde dot org
@ 2022-04-27 12:36 ` rguenth at gcc dot gnu.org
2022-04-27 13:12 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-27 12:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105406
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.4
Priority|P3 |P2
Keywords| |rejects-valid
Known to work| |11.2.0
Summary|coroutines: since 11.3 |[11/12 Regression]
|co_await attempts to copy a |coroutines: since 11.3
|move-only value when |co_await attempts to copy a
|await_transform(T &) exists |move-only value when
| |await_transform(T &) exists
Known to fail| |11.3.0, 12.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/105406] [11/12 Regression] coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists
2022-04-27 12:28 [Bug c++/105406] New: coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists dvratil at kde dot org
2022-04-27 12:29 ` [Bug c++/105406] " dvratil at kde dot org
2022-04-27 12:36 ` [Bug c++/105406] [11/12 Regression] " rguenth at gcc dot gnu.org
@ 2022-04-27 13:12 ` jakub at gcc dot gnu.org
2023-03-16 12:01 ` [Bug c++/105406] [11/12/13 " cvs-commit at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-04-27 13:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105406
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
CC| |iains at gcc dot gnu.org,
| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
Last reconfirmed| |2022-04-27
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r12-618-g14ed21f8749ae359690d9c4a69ca38cc45d0d1b0
which has been backported to 11.3 in
r11-9055-gb874ece3ff95d3afa575d40b6e14e95cae8baf87
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/105406] [11/12/13 Regression] coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists
2022-04-27 12:28 [Bug c++/105406] New: coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists dvratil at kde dot org
` (2 preceding siblings ...)
2022-04-27 13:12 ` jakub at gcc dot gnu.org
@ 2023-03-16 12:01 ` cvs-commit at gcc dot gnu.org
2023-04-18 20:45 ` [Bug c++/105406] [11/12 " cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-03-16 12:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105406
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:d0ed0690f1e86621a5cb62eec1d144036feb16f8
commit r13-6711-gd0ed0690f1e86621a5cb62eec1d144036feb16f8
Author: Jason Merrill <jason@redhat.com>
Date: Wed Mar 15 17:02:15 2023 -0400
c++: co_await and move-only type [PR105406]
Here we were building a temporary MoveOnlyAwaitable to hold the result of
evaluating 'o', but since 'o' is an lvalue we should build a reference
instead.
PR c++/105406
gcc/cp/ChangeLog:
* coroutines.cc (build_co_await): Handle lvalue 'o'.
gcc/testsuite/ChangeLog:
* g++.dg/coroutines/co-await-moveonly1.C: New test.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/105406] [11/12 Regression] coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists
2022-04-27 12:28 [Bug c++/105406] New: coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists dvratil at kde dot org
` (3 preceding siblings ...)
2023-03-16 12:01 ` [Bug c++/105406] [11/12/13 " cvs-commit at gcc dot gnu.org
@ 2023-04-18 20:45 ` cvs-commit at gcc dot gnu.org
2023-04-18 20:50 ` [Bug c++/105406] [11 " jason at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-04-18 20:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105406
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:6fd32842404ac1a3cd98189f61d93c5bc9c8680c
commit r12-9435-g6fd32842404ac1a3cd98189f61d93c5bc9c8680c
Author: Jason Merrill <jason@redhat.com>
Date: Wed Mar 15 17:02:15 2023 -0400
c++: co_await and move-only type [PR105406]
Here we were building a temporary MoveOnlyAwaitable to hold the result of
evaluating 'o', but since 'o' is an lvalue we should build a reference
instead.
PR c++/105406
gcc/cp/ChangeLog:
* coroutines.cc (build_co_await): Handle lvalue 'o'.
gcc/testsuite/ChangeLog:
* g++.dg/coroutines/co-await-moveonly1.C: New test.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/105406] [11 Regression] coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists
2022-04-27 12:28 [Bug c++/105406] New: coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists dvratil at kde dot org
` (4 preceding siblings ...)
2023-04-18 20:45 ` [Bug c++/105406] [11/12 " cvs-commit at gcc dot gnu.org
@ 2023-04-18 20:50 ` jason at gcc dot gnu.org
2023-04-22 0:22 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2023-04-18 20:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105406
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/105406] [11 Regression] coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists
2022-04-27 12:28 [Bug c++/105406] New: coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists dvratil at kde dot org
` (5 preceding siblings ...)
2023-04-18 20:50 ` [Bug c++/105406] [11 " jason at gcc dot gnu.org
@ 2023-04-22 0:22 ` cvs-commit at gcc dot gnu.org
2023-05-29 10:06 ` jakub at gcc dot gnu.org
2023-08-11 19:32 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-04-22 0:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105406
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:657fb0db2648a8cd7ba355fdec570fe2f08448ac
commit r11-10642-g657fb0db2648a8cd7ba355fdec570fe2f08448ac
Author: Jason Merrill <jason@redhat.com>
Date: Wed Mar 15 17:02:15 2023 -0400
c++: co_await and move-only type [PR105406]
Here we were building a temporary MoveOnlyAwaitable to hold the result of
evaluating 'o', but since 'o' is an lvalue we should build a reference
instead.
PR c++/105406
gcc/cp/ChangeLog:
* coroutines.cc (build_co_await): Handle lvalue 'o'.
gcc/testsuite/ChangeLog:
* g++.dg/coroutines/co-await-moveonly1.C: New test.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/105406] [11 Regression] coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists
2022-04-27 12:28 [Bug c++/105406] New: coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists dvratil at kde dot org
` (6 preceding siblings ...)
2023-04-22 0:22 ` cvs-commit at gcc dot gnu.org
@ 2023-05-29 10:06 ` jakub at gcc dot gnu.org
2023-08-11 19:32 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-05-29 10:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105406
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.4 |11.5
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 11.4 is being released, retargeting bugs to GCC 11.5.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/105406] [11 Regression] coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists
2022-04-27 12:28 [Bug c++/105406] New: coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists dvratil at kde dot org
` (7 preceding siblings ...)
2023-05-29 10:06 ` jakub at gcc dot gnu.org
@ 2023-08-11 19:32 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2023-08-11 19:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105406
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|11.5 |11.4
Status|ASSIGNED |RESOLVED
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed in 11.4/12.3/13.
^ permalink raw reply [flat|nested] 10+ messages in thread