https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122162

            Bug ID: 122162
           Summary: constexpr and set but not used
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: uecker at gcc dot gnu.org
  Target Milestone: ---

I get a "set but not used warning" here

int h()
{
    constexpr int b = 0;
    return b;
}

https://godbolt.org/z/a3T96PrE6

Reply via email to