[PATCH] [clang] Enforce instantiation of constexpr template functions during non...
authorserge-sans-paille <sguelton@redhat.com>
Sat, 18 Jun 2022 11:48:41 +0000 (13:48 +0200)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sun, 4 Dec 2022 08:03:06 +0000 (08:03 +0000)
commit040c107072dba40e2677df43311f296d6a7b4112
tree636531b701dea70051464a82022ae32c2399f33b
parentf292a97050d3e4081b51e3f50be37a0f228b5a52
[PATCH] [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

Gbp-Pq: Name basic_string.patch
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]