From e9289e855ec1eec35fb1b347152a488773b1e475 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 18 Aug 2024 11:05:47 -0400 Subject: [PATCH] xo-reader: bugfix: lambda_xs: supply exprstate.exs_type --- include/xo/reader/lambda_xs.hpp | 2 +- src/reader/lambda_xs.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/xo/reader/lambda_xs.hpp b/include/xo/reader/lambda_xs.hpp index 4b4fb74c..1152406a 100644 --- a/include/xo/reader/lambda_xs.hpp +++ b/include/xo/reader/lambda_xs.hpp @@ -57,7 +57,7 @@ namespace xo { private: /** parsing state-machine state **/ - lambdastatetype lmxs_type_; + lambdastatetype lmxs_type_ = lambdastatetype::lm_0; /** formal parameter list **/ std::vector> argl_; diff --git a/src/reader/lambda_xs.cpp b/src/reader/lambda_xs.cpp index a4a19845..d6b1eec1 100644 --- a/src/reader/lambda_xs.cpp +++ b/src/reader/lambda_xs.cpp @@ -14,7 +14,7 @@ namespace xo { return std::make_unique(lambda_xs()); } - lambda_xs::lambda_xs() {} + lambda_xs::lambda_xs() : exprstate(exprstatetype::lambdaexpr) {} void lambda_xs::on_lambda_token(const token_type & tk,