[clang] [clang] Improve diagnostics around constexpr limits (PR #212091)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 28 08:13:22 PDT 2026


================
@@ -170,7 +170,7 @@ def note_constexpr_depth_limit_exceeded : Note<
 def note_constexpr_call_limit_exceeded : Note<
   "constexpr evaluation hit maximum call limit">;
 def note_constexpr_step_limit_exceeded : Note<
-  "constexpr evaluation hit maximum step limit; possible infinite loop?">;
+  "constexpr evaluation hit maximum step limit of %0; possible infinite loop?">;
----------------
Sirraide wrote:

Maybe there’s some heuristics, but in the general case, that runs into the halting problem; I think always including that in the note is fine

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


More information about the cfe-commits mailing list