aboutsummaryrefslogtreecommitdiff
path: root/odb/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-05-21 09:59:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-05-21 09:59:31 +0200
commit1d805d74cc78ecf61e9530f1132faa9eae68287a (patch)
treee785d9d246db13b3b2b3b2712f776d63cd46b795 /odb/parser.cxx
parent1804cfc0480c64b95ef347bd53baeb3599394deb (diff)
Go into the std namespace even if it is builtin
Diffstat (limited to 'odb/parser.cxx')
-rw-r--r--odb/parser.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/odb/parser.cxx b/odb/parser.cxx
index 03cecde..1f7ba46 100644
--- a/odb/parser.cxx
+++ b/odb/parser.cxx
@@ -282,7 +282,7 @@ emit_class (tree c, path const& file, size_t line, size_t clmn, bool stub)
//
decl_set decls;
- for (tree d (TYPE_FIELDS (c)); d != NULL_TREE ; d = TREE_CHAIN (d))
+ for (tree d (TYPE_FIELDS (c)); d != NULL_TREE; d = TREE_CHAIN (d))
{
switch (TREE_CODE (d))
{
@@ -645,9 +645,7 @@ collect (tree ns)
//
for(decl = level->namespaces; decl != NULL_TREE; decl = TREE_CHAIN (decl))
{
- // !DECL_NAMESPACE_STD_P (decl)
-
- if (!DECL_IS_BUILTIN (decl))
+ if (!DECL_IS_BUILTIN (decl) || DECL_NAMESPACE_STD_P (decl))
{
if (trace)
{