aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
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);