From 3b840e7ff18b99f586cd80cf4004c27339c5c1c5 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 16 Sep 2022 20:36:37 +0100 Subject: [PATCH] lib/sourcelocation.h: add missing include (#4474) Without the change build on upcoming gcc-13 fails as: In file included from lib/symboldatabase.h:28, from lib/astutils.h:36, from test/testastutils.cpp:20: lib/sourcelocation.h:52:10: error: 'uint_least32_t' in namespace 'std' does not name a type 52 | std::uint_least32_t m_line = 0; | ^~~~~~~~~~~~~~ --- lib/sourcelocation.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sourcelocation.h b/lib/sourcelocation.h index 9a0581abb..06e461338 100644 --- a/lib/sourcelocation.h +++ b/lib/sourcelocation.h @@ -45,6 +45,7 @@ using SourceLocation = std::source_location; #include using SourceLocation = std::experimental::source_location; #else +#include struct SourceLocation { static SourceLocation current() { return SourceLocation();