From 125adff59c9bebef641630d92c2070016243d655 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Fri, 4 Oct 2019 11:10:21 +0200
Subject: [PATCH] macro processor: insert path instead of string as the path
 has already been created

---
 src/macro/Directives.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/macro/Directives.cc b/src/macro/Directives.cc
index 899399b6..eb7ad24e 100644
--- a/src/macro/Directives.cc
+++ b/src/macro/Directives.cc
@@ -100,7 +100,7 @@ IncludePath::interpret(ostream &output, bool no_line_macro, vector<filesystem::p
         throw StackTrace(ip.string() + " does not evaluate to a valid directory");
       if (!exists(ip))
         warning(StackTrace("@#includepath", ip.string() + " does not exist", location));
-      paths.emplace_back(*msp);
+      paths.emplace_back(ip);
     }
   catch (StackTrace &ex)
     {
-- 
GitLab