[all-commits] [llvm/llvm-project] 270a6a: No longer issue pedantic warning about pre-c++2b c...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue Mar 21 07:52:11 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 270a6a2824e3b42bd87acc986732a8b8f0765be7
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    A clang/test/SemaCXX/cxx2b-overloaded-operator-pedantic.cpp

  Log Message:
  No longer issue pedantic warning about pre-c++2b compat

We were accidentally issuing "overloaded 'operator[]' with more than
one parameter is a C++2b extension" with -pedantic because it was an
ExtWarn diagnostic rather than a Warning. This corrects the diagnostic
category and adds some test coverage.

Fixes #61582

More information about the All-commits mailing list