aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r--build2/parser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index fe12b98..af6a6f5 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -1593,7 +1593,7 @@ namespace build2
if (type != nullptr)
{
if (var.type == nullptr)
- var.type = type;
+ var_pool.update (const_cast<variable&> (var), type);
else if (var.type != type)
fail (l) << "changing variable " << var << " type from "
<< var.type->name << " to " << type->name;