]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Fix a pasto in the PR120471 fix [PR120940]
authorJakub Jelinek <jakub@redhat.com>
Thu, 3 Jul 2025 20:39:39 +0000 (22:39 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 3 Jul 2025 20:52:03 +0000 (22:52 +0200)
commitf88883db50e3a41af53f87e94cd31e86f63126b8
tree92c0940373b4c1e1b03574a31340547c16d943aa
parenta9b70e4c95c8881520b789c76169e5f8a7f385cc
c++: Fix a pasto in the PR120471 fix [PR120940]

No idea how this slipped in, I'm terribly sorry.
Strangely nothing in the testsuite has caught this, so I've added
a new test for that.

2025-07-03  Jakub Jelinek  <jakub@redhat.com>

PR c++/120940
* typeck.cc (cp_build_array_ref): Fix a pasto.

* g++.dg/parse/pr120940.C: New test.
* g++.dg/warn/Wduplicated-branches9.C: New test.

(cherry picked from commit dc90649466a54ab61926d88500a05f59a55cb055)
gcc/cp/typeck.cc
gcc/testsuite/g++.dg/parse/pr120940.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wduplicated-branches9.C [new file with mode: 0644]