[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>
Fri, 17 Feb 2023 11:57:29 +0000 (11:57 +0000)
commitc26addbc51f97a30060e183d5604b4b5b6218d95
tree695faf92db200d857cdd096e8c02fad5c05f9b32
parent7b7afdfb3060b06effdad909cfbc45e443eb169f
[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]