https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119212
--- Comment #8 from Nikl Kelbon <kelbonage at gmail dot com> --- In commit 3dbf070f50c5d47537019fc7f2cbbdfd43bad5ed i added flag for you diff: https://github.com/bot-motherlib/TGBM/pull/111/commits/3dbf070f50c5d47537019fc7f2cbbdfd43bad5ed steps to reproduce: - git clone project - checkout branch kelbon/http2_client - cmake . -B build -G Ninja -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ cd build ninja OR cmake . -B build -G Ninja -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ cmake --build build If you want to create separate project and have no cmake experience: CMakeLists.txt: cmake_minimum_required(VERSION 3.20) project(tgbm_bugtester) include(FetchContent) FetchContent_Declare( TGBM GIT_REPOSITORY https://github.com/bot-motherlib/TGBM GIT_TAG origin/master ) FetchContent_MakeAvailable(TGBM) add_executable(bugtester ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp) target_link_libraries(bugtester tgbmlib) set_target_properties(bugtester PROPERTIES CXX_STANDARD 20) if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") # add what you need target_compile_options(bugtester PRIVATE -freport-bug) endif() main.cpp: #include <tgbm/bot.hpp> int main() { tgbm::bot bot("token"); }