[all-commits] [llvm/llvm-project] c1468e: [Clang] Don't give up on an unsuccessful function ...
Younan Zhang via All-commits
all-commits at lists.llvm.org
Tue Mar 4 19:50:59 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c1468e9cbca1002a24772af1a0e7a771f93f6910
https://github.com/llvm/llvm-project/commit/c1468e9cbca1002a24772af1a0e7a771f93f6910
Author: Younan Zhang <zyn7109 at gmail.com>
Date: 2025-03-05 (Wed, 05 Mar 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Sema/Sema.h
M clang/lib/Interpreter/IncrementalParser.cpp
M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
M clang/test/CodeGenCXX/function-template-specialization.cpp
Log Message:
-----------
[Clang] Don't give up on an unsuccessful function instantiation (#126723)
For constexpr function templates, we immediately instantiate them upon
reference. However, if the function isn't defined at the time of
instantiation, even though it might be defined later, the instantiation
would forever fail.
This patch corrects the behavior by popping up failed instantiations
through PendingInstantiations, so that we are able to instantiate them
again in the future (e.g. at the end of TU.)
Fixes https://github.com/llvm/llvm-project/issues/125747
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