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

            Bug ID: 98543
           Summary: fails to diagnose unnecessary functions
           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: ---

clang diagnoses unnecessary functions, gcc fails to:

https://godbolt.org/z/vvErGh

static void f()
{
   [[maybe_unused]] auto var = &f;
}
  • [Bug c++/98543] New: fails to ... tiagomacarios at gmail dot com via Gcc-bugs

Reply via email to