diff options
Diffstat (limited to 'odb')
-rw-r--r-- | odb/parser.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/odb/parser.cxx b/odb/parser.cxx index fd7bb0e..704063f 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -623,6 +623,8 @@ auto_ptr<unit> parser::impl:: parse (tree global_scope, path const& main_file) { auto_ptr<unit> u (new unit (main_file)); + u->insert (global_namespace, *u); + unit_ = u.get (); scope_ = unit_; error_ = 0; |