]> 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:56:43 +0000 (22:56 +0200)
commited950a9ed384389ff07ac793b7065abe31bcae3f
treed77331ae5dc9278aed33df71e640018bb9db3467
parentb5f0faa4eb71650a9dde3938c3a98eda710534de
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]