https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101244
--- Comment #1 from Victor Burckel ---
If ternary is not put in the co_return part but split into assignement return,
the compiler crashes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101149
++
Assignee: unassigned at gcc dot gnu.org
Reporter: victor.burckel at gmail dot com
Target Milestone: ---
In a coroutine returning a ternary expression with co_await, the co_await part
seems to be evaluated whatever the result of the condition:
See it on godbolt, I added a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101243
--- Comment #1 from Victor Burckel ---
May be similar to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401
++
Assignee: unassigned at gcc dot gnu.org
Reporter: victor.burckel at gmail dot com
Target Milestone: ---
In a corourtine expecting a std::function parameter, passing a
temporary lambda with a capture results in the capture being destroyed twice:
See it on gldbolt, gcc vs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401
Victor Burckel changed:
What|Removed |Added
CC||victor.burckel at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576
--- Comment #4 from Victor Burckel ---
I'm also seeing the same behavior, destructor of lambda captures seems to get
called twice
https://godbolt.org/z/zxnhM3x47
: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: victor.burckel at gmail dot com
Target Milestone: ---
Hello,
I'm getting a compiler error when trying to use co_await expression in a
ternary operator:
> internal compiler error: in expand_expr_real_1, at expr
++
Assignee: unassigned at gcc dot gnu.org
Reporter: victor.burckel at gmail dot com
Target Milestone: ---
Hello,
When trying to await the following coroutine, I get a compiler internal error
> internal compiler error: in build_special_member_call, at cp/call.c:10157
See it on godbolt: ht
++
Assignee: unassigned at gcc dot gnu.org
Reporter: victor.burckel at gmail dot com
Target Milestone: ---
The following code sample makes the gcc 10.1.0 compiler crash with segmentation
fault (compiled with -std=c++20 -fcoroutines). Gcc trunk generates an assertion
> internal compiler er
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: victor.burckel at gmail dot com
Target Milestone: ---
I get a compiler internal error when passing a value to a coroutine that is
retrieved through two inderections within smart pointers (I
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: victor.burckel at gmail dot com
Target Milestone: ---
It seems that when a coroutine contains a local object whose destructor is
marked as noexcept(false), gcc
11 matches
Mail list logo