[clang] Enforce instantiation of constexpr template functions during non-constexpr...
authorserge-sans-paille <sguelton@redhat.com>
Sat, 18 Jun 2022 11:48:41 +0000 (13:48 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Sun, 10 Jul 2022 06:40:03 +0000 (08:40 +0200)
commitda6a14b91ad999327b41a9040577273591e4ad1d
treea70363c9aa204477b48fbf1b0cf9a0adf445ec2e
parent2c18e817eefefcbe8a5f08a3f558781892fdf679
[clang] Enforce instantiation of constexpr template functions during non-constexpr evaluation

Otherwise these functions are not instantiated and we end up with an undefined
symbol.

Fix #55560

Differential Revision: https://reviews.llvm.org/D128119
clang/docs/ReleaseNotes.rst
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/CodeGenCXX/constexpr-late-instantiation.cpp [new file with mode: 0644]
clang/test/SemaCXX/constexpr-late-instantiation.cpp [new file with mode: 0644]