aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-12 22:28:39 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-12 22:28:39 +0300
commited6b2b5faa5e4725c86042777e5241fcf1b53e20 (patch)
tree1da0ee67795bbb54c1cc69f53486afea6128a5c5
parentc030e580940929c8f395de73507f943b9c35e0ec (diff)
Fix assertion failure due to parser::attributes_pop() call in pre-parse mode
-rw-r--r--build2/parser.cxx3
1 files changed, 2 insertions, 1 deletions
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);