From ff0e094d6f6de3a4aa85f83064f6fd51075baad6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 25 Jan 2022 12:55:07 +0100
Subject: [PATCH] =?UTF-8?q?Macroprocessor:=20MinGW=20bug=20for=20filesyste?=
 =?UTF-8?q?m::path=E2=86=92string=20implicit=20conversion=20is=20still=20p?=
 =?UTF-8?q?resent=20in=20Debian=2011?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/macro/Directives.cc | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/macro/Directives.cc b/src/macro/Directives.cc
index 9d9f94c6..c84f2294 100644
--- a/src/macro/Directives.cc
+++ b/src/macro/Directives.cc
@@ -72,9 +72,10 @@ Include::interpret(ostream &output, Environment &env, vector<filesystem::path> &
             }
         }
       Driver m;
-      // Calling `string()` method on filename and filename.stem() because of bug in
-      // MinGW 8.3.0 that ignores implicit conversion to string from filename::path.
-      // Test if bug exists when version of MinGW is upgraded on Debian runners
+      /* Calling `string()` method on filename and filename.stem() because of
+         bug in GCC/MinGW 10.2 (shipped in Debian “Bullseye” 11), that fails
+         to accept implicit conversion to string from filename::path. See
+         https://en.cppreference.com/w/cpp/filesystem/path/native. */
       m.parse(filename.string(), filename.stem().string(), incfile, false, {}, env, paths, output);
     }
   catch (StackTrace &ex)
-- 
GitLab