[Bug c++/98520] New: nodiscard not diagnosed in comma operator
tiagomacarios at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jan 4 22:19:38 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98520
Bug ID: 98520
Summary: nodiscard not diagnosed in comma operator
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tiagomacarios at gmail dot com
Target Milestone: ---
https://godbolt.org/z/13j51h
struct [[nodiscard]] S{};
void f();
void _()
{
f(), S{};
}
More information about the Gcc-bugs
mailing list