From d5284672347920167987ce024bb47e7e8eafeb38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Tue, 31 Aug 2021 12:51:16 +0200 Subject: [PATCH] =?UTF-8?q?Ensure=20that=20the=20=E2=80=9Cdiscount?= =?UTF-8?q?=E2=80=9D=20option=20of=20=E2=80=9Cpac=5Fmodel=E2=80=9D=20is=20?= =?UTF-8?q?a=20parameter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref. Madysson/estimation-codes#4 (cherry picked from commit 6863494db2fe509ccb5a0f665167eca0054cc298) --- src/ParsingDriver.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ParsingDriver.cc b/src/ParsingDriver.cc index fafa9022..9f14c410 100644 --- a/src/ParsingDriver.cc +++ b/src/ParsingDriver.cc @@ -2636,6 +2636,7 @@ ParsingDriver::pac_model() if (it == options_list.string_options.end()) error("You must pass the discount option to the pac_model statement."); auto discount = it->second; + check_symbol_is_parameter(discount); mod_file->addStatement(make_unique<PacModelStatement>(name, aux_model_name, discount, pac_growth, -- GitLab