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{};
}
  • [Bug c++/98520] New: nodiscard... tiagomacarios at gmail dot com via Gcc-bugs

Reply via email to