[all-commits] [llvm/llvm-project] 80a3a5: GH60642: Fix ICE when checking a lambda defined in...

Erich Keane via All-commits all-commits at lists.llvm.org
Tue Feb 21 16:38:21 PST 2023


  Branch: refs/heads/release/16.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 80a3a5fe15f71695086eb133a04e7b771a23a765
      https://github.com/llvm/llvm-project/commit/80a3a5fe15f71695086eb133a04e7b771a23a765
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M clang/lib/Sema/TreeTransform.h
    M clang/test/SemaTemplate/concepts-lambda.cpp

  Log Message:
  -----------
  GH60642: Fix ICE when checking a lambda defined in a concept definition

As reported in GH60642, we asserted when there was a lambda defined in a
template arguments inside of a concept, which caused us to not properly
set up the list of instantiation args.  This patch ensures that the
'lambda context decl' correctly falls-through the template argument
instantiation, so that it is available when instantiating the lambda,
and thus, when setting up the lambda instantiation args list.

(cherry picked from commit 4bf6cc63aa77a7fea7e410f7d45899abcde2b58a)




More information about the All-commits mailing list