From 7a1966f7f13f899b7dad153b7b734cada5172d2b Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Tue, 4 Feb 2020 10:55:27 +0100
Subject: [PATCH] macro processor: fix bug in file reported when error
 encountered after a file has been included

closes #42

(cherry picked from commit 12296b620fbc5a5b298bf2fa42c602e730ba946f)
---
 src/macro/Directives.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/macro/Directives.cc b/src/macro/Directives.cc
index 3fa42a67..f9893377 100644
--- a/src/macro/Directives.cc
+++ b/src/macro/Directives.cc
@@ -86,6 +86,7 @@ Include::interpret(ostream &output, bool no_line_macro, vector<filesystem::path>
     {
       error(StackTrace("@#include", e.what(), location));
     }
+  printLineInfo(output, no_line_macro);
 }
 
 void
-- 
GitLab