[Bug c++/96749] [coroutines] unexpected 'warning: statement has no effect [-Wunused-value]'
max at duempel dot org
gcc-bugzilla@gcc.gnu.org
Fri Dec 4 14:13:28 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96749
Max Kellermann <max at duempel dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |max at duempel dot org
--- Comment #2 from Max Kellermann <max at duempel dot org> ---
Created attachment 49681
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49681&action=edit
Another variant of the bug
I confirm this bug with "gcc version 10.2.0 (Debian 10.2.0-19)", and I have
found another variant of it; in my sample source, using a "struct" return type
triggers the warning, but built-in types do not.
More information about the Gcc-bugs
mailing list