aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Parser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Parser.cpp b/Parser.cpp
index 13faf583..0ae3c6fe 100644
--- a/Parser.cpp
+++ b/Parser.cpp
@@ -118,6 +118,9 @@ void eth::parseTreeLLL(string const& _s, sp::utree& o_out)
if (!incomment)
s.push_back(i);
}
- qi::phrase_parse(s.cbegin(), s.cend(), element, space, qi::skip_flag::dont_postskip, o_out);
+ auto ret = s.cbegin();
+ qi::phrase_parse(ret, s.cend(), element, space, qi::skip_flag::dont_postskip, o_out);
+ if (ret != s.cend())
+ throw std::exception();
}