]> 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:42:16 +0000 (22:42 +0200)
commitdc90649466a54ab61926d88500a05f59a55cb055
tree930a732a41d8a8a5e9814045d5a6852c1e853fc6
parentddab5cf206903f947f969562eb15d799891b0f47
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.
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]