https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98520
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2021-01-07 00:00:00 |2024-2-25 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Are you sure this is related to the comma operator? We also fail to diagnose: struct [[nodiscard]] S{}; void _() { S{}; } I think this is just a dup of PR 85973