Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: natattak at gmail dot com
Target Milestone: ---
In some cases, the result object of a coroutine is not properly destroyed after
the coroutine finishes execution. Consider the following example
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: natattak at gmail dot com
Target Milestone: ---
Minimal example:
#include
#include
struct S {
// making it a member fixes the issue
friend auto operator<=>(S, S) = d
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96533
--- Comment #1 from Nathaniel Shead ---
On further investigation, I suspect this is more general than just
`-Wunused-parameter`; the error looks to be caused by any error occurring
within `operator<`. For example,
#include
#include
stru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96533
Nathaniel Shead changed:
What|Removed |Added
Summary|ICE with -Wunused-parameter |ICE with three-way
|
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: natattak at gmail dot com
Target Milestone: ---
Example: (https://godbolt.org/z/Y5q5br)
#include
#include
// error disappears if E doesn't inherit f