Skip to content

Commit 13a6db5

Browse files
committed
[Clang] Add release note for consistent structured binding shadow warnings
1 parent 578e61b commit 13a6db5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@ Bug Fixes in This Version
308308
- Builtin elementwise operators now accept vector arguments that have different
309309
qualifiers on their elements. For example, vector of 4 ``const float`` values
310310
and vector of 4 ``float`` values. (#GH155405)
311+
- Fixed inconsistent shadow warnings for lambda capture of structured bindings.
312+
Previously, ``[val = val]`` (regular parameter) produced no warnings with ``-Wshadow``
313+
while ``[a = a]`` (where ``a`` is from ``auto [a, b] = std::make_pair(1, 2)``)
314+
incorrectly produced warnings. Both cases now consistently show no warnings with
315+
``-Wshadow`` and show uncaptured-local warnings with ``-Wshadow-all``. (#GH68605)
311316

312317
Bug Fixes to Compiler Builtins
313318
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)