From 470bfba45661d19558c0bf43b7819696a925ecb4 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 6 Jul 2026 10:44:15 +0200 Subject: Fix compiler crashing on syntax errors after error reporting. --- boot/driver.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'boot/driver.cc') diff --git a/boot/driver.cc b/boot/driver.cc index abbf0f1..b2ffe60 100644 --- a/boot/driver.cc +++ b/boot/driver.cc @@ -28,9 +28,8 @@ namespace elna::boot return result; } - syntax_error::syntax_error(const std::string& message, - const char *input_file, const yy::location& location) - : error(input_file, make_position(location)), message(message) + syntax_error::syntax_error(const std::string& message, const yy::location& location) + : error(make_position(location)), message(message) { } @@ -39,11 +38,6 @@ namespace elna::boot return message; } - driver::driver(const char *input_file) - : error_container(input_file) - { - } - char escape_char(char escape) { switch (escape) -- cgit v1.2.3