[all-commits] [llvm/llvm-project] 70965e: [Clang] Prevent assignment to captured structured ...

TilakChad via All-commits all-commits at lists.llvm.org
Wed Dec 25 09:59:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70965ef259a161a6e9ccfb8bd841dd2246c56c37
      https://github.com/llvm/llvm-project/commit/70965ef259a161a6e9ccfb8bd841dd2246c56c37
  Author: TilakChad <49703944+TilakChad at users.noreply.github.com>
  Date:   2024-12-25 (Wed, 25 Dec 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/SemaCXX/cxx20-decomposition.cpp

  Log Message:
  -----------
  [Clang] Prevent assignment to captured structured bindings inside immutable lambda (#120849)

For structured bindings, a call to getCapturedDeclRefType(...) was
missing. This PR fixes that behavior and adds the related diagnostics
too.

This fixes https://github.com/llvm/llvm-project/issues/95081.



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