From ed6b2b5faa5e4725c86042777e5241fcf1b53e20 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 12 May 2018 22:28:39 +0300 Subject: Fix assertion failure due to parser::attributes_pop() call in pre-parse mode --- build2/parser.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build2/parser.cxx b/build2/parser.cxx index de83872..96465f6 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -2649,7 +2649,8 @@ namespace build2 if (at.first) fail (at.second) << "attributes before target-qualified variable name"; - attributes_pop (); + if (!pre_parse_) + attributes_pop (); const location nl (get_location (t)); next (t, tt); -- cgit v1.1