[clang] [Clang] Eagerly instantiate used constexpr function upon definition. (PR #73463)

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 12:38:22 PST 2023


================
@@ -112,6 +112,9 @@ template <typename T>
 constexpr int f(T t) { // expected-note {{'f<int>' defined here}}
     return id(t); // expected-note {{'f<int>' is an immediate function because its body contains a call to a consteval function 'id' and that call is not a constant expression}}
 }
+
+
+
----------------
zygoloid wrote:

Revert these added blank lines.

https://github.com/llvm/llvm-project/pull/73463


More information about the cfe-commits mailing list