No longer issue pedantic warning about pre-c++2b compat
authorAaron Ballman <aaron@aaronballman.com>
Tue, 21 Mar 2023 14:49:54 +0000 (10:49 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 21 Mar 2023 14:51:53 +0000 (10:51 -0400)
commit270a6a2824e3b42bd87acc986732a8b8f0765be7
tree380881d1792b70d1b1849aceef8ec486d9bee19a
parent83dc4734ba69da95d8c879bb174a1169b3f9e0b8
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
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/test/SemaCXX/cxx2b-overloaded-operator-pedantic.cpp [new file with mode: 0644]