From 970ed9af147cb426fc2f2a121c30aed1f3a6eaa6 Mon Sep 17 00:00:00 2001 From: nyanpasu64 Date: Wed, 16 Feb 2022 06:49:59 -0800 Subject: [PATCH] Workaround fmtlib 8.1.1 compiler error on GCC Bug report: https://github.com/fmtlib/fmt/issues/2769 --- src/doc/validate.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/doc/validate.h b/src/doc/validate.h index 046dcad8..727f8fde 100644 --- a/src/doc/validate.h +++ b/src/doc/validate.h @@ -1,12 +1,15 @@ #pragma once +// format.h contains fmt::memory_buffer, core.h doesn't. +// Include before "doc.h" to avoid partial specialization errors in +// UNITTEST builds (where doc.h includes and instantiates ) on GCC. +#include +#include + #include "validate_common.h" #include "doc.h" #include "util/copy_move.h" -#include // format.h contains fmt::memory_buffer, core.h doesn't -#include - #include #include #include