From b1f6a806d939a80d973b1fbea96402318a156e06 Mon Sep 17 00:00:00 2001 From: Peter Groom Date: Sun, 26 Jul 2026 10:07:13 -0300 Subject: [PATCH] common: fix build on gcc 14 - include in speculative.cpp std::isfinite is used in speculative.cpp (DFlash path) but was only reaching it transitively. gcc 14 / libstdc++ no longer pull it in, so the laguna branch fails to compile: common/speculative.cpp: error: 'isfinite' is not a member of 'std' Add the explicit include. One line; no behavior change. --- common/speculative.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/speculative.cpp b/common/speculative.cpp index e6ec8f6ac62f..0cb19048945a 100644 --- a/common/speculative.cpp +++ b/common/speculative.cpp @@ -1,5 +1,7 @@ #include "speculative.h" +#include + #include "common.h" #include "ggml.h" #include "llama.h"