From 519ea8c1d7a721a42dcebb2f71a34363f51456c3 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Mon, 26 Oct 2026 08:12:12 +0100 Subject: [PATCH 1/2] GDALCachedPixelAccessor: avoid GCC 13.1 ICE in C++20 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Default the nested tile constructor to avoid the aggregate initialization path that crashes GCC 13.1.0. Existing member initializers retain the same tile state. AI assistance: Codex proposed this change, performed validation, and prepared this commit at the user’s request. --- gcore/gdalcachedpixelaccessor.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcore/gdalcachedpixelaccessor.h b/gcore/gdalcachedpixelaccessor.h index 0d0db7ceda60..5c68d24cf43d 100644 --- a/gcore/gdalcachedpixelaccessor.h +++ b/gcore/gdalcachedpixelaccessor.h @@ -40,6 +40,9 @@ class GDALCachedPixelAccessor struct CachedTile { + // Avoid a GCC 13.1 ICE in C++20 aggregate initialization of the array. + CachedTile() = default; + std::vector m_data{}; int m_nTileX = -1; int m_nTileY = -1; From a377f51b71c688c1ca9d5e4ed16eab1647b88916 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Mon, 26 Oct 2026 08:14:41 +0100 Subject: [PATCH 2/2] Change ICE -> internal compiler error --- gcore/gdalcachedpixelaccessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcore/gdalcachedpixelaccessor.h b/gcore/gdalcachedpixelaccessor.h index 5c68d24cf43d..6f3f865051b2 100644 --- a/gcore/gdalcachedpixelaccessor.h +++ b/gcore/gdalcachedpixelaccessor.h @@ -40,7 +40,7 @@ class GDALCachedPixelAccessor struct CachedTile { - // Avoid a GCC 13.1 ICE in C++20 aggregate initialization of the array. + // Avoid a GCC 13.1 internal compiler error in C++20 aggregate initialization of the array. CachedTile() = default; std::vector m_data{};