[all-commits] [llvm/llvm-project] 8290ce: [Clang] Fix handling of placeholder variables name...

cor3ntin via All-commits all-commits at lists.llvm.org
Thu Sep 12 22:57:07 PDT 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 8290ce0998788b6a575ed7b4988b093f48c25b3d
      https://github.com/llvm/llvm-project/commit/8290ce0998788b6a575ed7b4988b093f48c25b3d
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2024-09-12 (Thu, 12 Sep 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaLambda.cpp
    M clang/lib/Sema/SemaLookup.cpp
    M clang/test/SemaCXX/cxx2c-placeholder-vars.cpp

  Log Message:
  -----------
  [Clang] Fix handling of placeholder variables name in init captures (#107055)

We were incorrectly not deduplicating results when looking up `_` which,
for a lambda init capture, would result in an ambiguous lookup.

The same bug caused some diagnostic notes to be emitted twice.

Fixes #107024



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list