[all-commits] [llvm/llvm-project] a8f439: [Clang] Fix ICE where C++ Template Instantiation f...

Yuxuan Chen via All-commits all-commits at lists.llvm.org
Wed Jan 3 09:01:33 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8f43974260ec244d78336d2530f8fc097753580
      https://github.com/llvm/llvm-project/commit/a8f43974260ec244d78336d2530f8fc097753580
  Author: Yuxuan Chen <yuxuanchen1997 at outlook.com>
  Date:   2024-01-03 (Wed, 03 Jan 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/TreeTransform.h
    A clang/test/SemaCXX/template-instantiation.cpp

  Log Message:
  -----------
  [Clang] Fix ICE where C++ Template Instantiation failed to handle attributed lambdas (#76523)

This PR is proposing a fix for
https://github.com/llvm/llvm-project/issues/76521.

Clang used to assume that during template instantiation, Lambda
expressions can only have `FunctionProtoTypeLoc`s. However, this is not
true for certain attributes like `__attribute__((pcs("aapcs-vfp")))`,
whose interpretation happens after template instantiation. This PR
changes the transformation logic for lambdas.




More information about the All-commits mailing list