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

cor3ntin via All-commits all-commits at lists.llvm.org
Tue Sep 3 11:36:37 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eec1fac9b51d06c8afafe9952a20ba7cd4c3ce1c
      https://github.com/llvm/llvm-project/commit/eec1fac9b51d06c8afafe9952a20ba7cd4c3ce1c
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2024-09-03 (Tue, 03 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