From 8edbfcf21fdfc349c3a2d2a20c28f73f5df9c775 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 18 Aug 2024 11:02:21 -0400 Subject: [PATCH] xo-reader: bugfix: init expect_formal_arglist_xs.farglxs_type --- include/xo/reader/expect_formal_arglist_xs.hpp | 2 +- include/xo/reader/expect_formal_xs.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/xo/reader/expect_formal_arglist_xs.hpp b/include/xo/reader/expect_formal_arglist_xs.hpp index 501d945f..82116133 100644 --- a/include/xo/reader/expect_formal_arglist_xs.hpp +++ b/include/xo/reader/expect_formal_arglist_xs.hpp @@ -71,7 +71,7 @@ namespace xo { private: /** parsing state-machine state **/ - formalarglstatetype farglxs_type_; + formalarglstatetype farglxs_type_ = formalarglstatetype::argl_0; /** populate with (parmaeter-name, parameter-type) list * as they're encountered **/ diff --git a/include/xo/reader/expect_formal_xs.hpp b/include/xo/reader/expect_formal_xs.hpp index b4c046b9..79b8bf05 100644 --- a/include/xo/reader/expect_formal_xs.hpp +++ b/include/xo/reader/expect_formal_xs.hpp @@ -45,7 +45,7 @@ namespace xo { **/ class expect_formal_xs : public exprstate { public: - expect_formal_xs() = default; + expect_formal_xs(); static std::unique_ptr make();