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

            Bug ID: 100668
           Summary: Wrong warning highlight
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: brahim.pro at protonmail dot com
  Target Milestone: ---

const char* const f() {
    return nullptr;
}

When I compile this with -Wignored-qualifiers, the wrong const keyword is
highlighted.

Same problem her:
char const* const f() {
    return nullptr;
}

and here:
char* const f() {
    return nullptr;
}
  • [Bug c++/100668] New: Wrong ... brahim.pro at protonmail dot com via Gcc-bugs

Reply via email to