From 08a848a486eb4baf4d0088a7c842f181869acda0 Mon Sep 17 00:00:00 2001 From: MeanSquaredError <35379301+MeanSquaredError@users.noreply.github.com> Date: Tue, 23 Jun 2026 13:21:46 +0300 Subject: [PATCH 1/2] Remove a superfluous call to std::ranges::sort() --- tests/postgresql/recipes/enum/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/postgresql/recipes/enum/main.cpp b/tests/postgresql/recipes/enum/main.cpp index 9da4c716..1bd44388 100644 --- a/tests/postgresql/recipes/enum/main.cpp +++ b/tests/postgresql/recipes/enum/main.cpp @@ -49,7 +49,6 @@ void test_enum_rw(sql::connection& db) { {animal::cat, shape::circle}, {animal::dog, shape::square}, {static_cast(10), shape::circle}}; - std::ranges::sort(val_write); // Write the enums vector to the database delete_from(te); for (const auto v : val_write) { From 61667286590efce78a6489b1e9b47859aa336b6a Mon Sep 17 00:00:00 2001 From: MeanSquaredError <35379301+MeanSquaredError@users.noreply.github.com> Date: Tue, 23 Jun 2026 15:51:09 +0300 Subject: [PATCH 2/2] enum recipe: Add missing #include . Comment out includes to enable building with GCC 16.1.1 and modules. --- tests/postgresql/recipes/enum/db_model.h | 15 +++++++++------ tests/postgresql/recipes/enum/main.cpp | 5 +++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/postgresql/recipes/enum/db_model.h b/tests/postgresql/recipes/enum/db_model.h index 525d7c2f..5efb0678 100644 --- a/tests/postgresql/recipes/enum/db_model.h +++ b/tests/postgresql/recipes/enum/db_model.h @@ -3,12 +3,15 @@ // clang-format off // generated by ./scripts/sqlpp23-ddl2cpp --path-to-ddl tests/postgresql/recipes/enum/db_model.sql --path-to-header tests/postgresql/recipes/enum/db_model.h --namespace test --assume-auto-id --generate-table-creation-helper -#include - -#include -#include -#include -#include +// The following auto-generated includes have been commented out manually to work around GCC bug +// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99000 +// +// #include +// +// #include +// #include +// #include +// #include namespace test { template diff --git a/tests/postgresql/recipes/enum/main.cpp b/tests/postgresql/recipes/enum/main.cpp index 1bd44388..0a225e33 100644 --- a/tests/postgresql/recipes/enum/main.cpp +++ b/tests/postgresql/recipes/enum/main.cpp @@ -28,6 +28,9 @@ // // For details on the actual pattern see /docs/recipes/enum.md +#include +#include + #include // The enum definitions must be included before the database model @@ -35,8 +38,6 @@ #include #include -#include - namespace sql = ::sqlpp::postgresql; void test_enum_rw(sql::connection& db) {