1From 2d37e44753c1e67de4658b6fdf95760432c74ead Mon Sep 17 00:00:00 2001
2From: Boris Kolpackov <boris@codesynthesis.com>
3Date: Fri, 5 Oct 2018 07:20:18 +0200
4Subject: [PATCH] Handle namespace aliases when parsing GCC tree
5
6[Upstream: 3a1788234bfaa96ee093b68e9ba02cf7d5bdffe6]
7Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
8---
9 odb/parser.cxx | 5 +++++
10 1 file changed, 5 insertions(+)
11
12diff --git a/odb/parser.cxx b/odb/parser.cxx
13index 30e45af..03bcb01 100644
14--- a/odb/parser.cxx
15+++ b/odb/parser.cxx
16@@ -906,6 +906,11 @@ collect (tree ns)
17       continue;
18 #endif
19
20+    // Ignore namespace aliases.
21+    //
22+    if (DECL_NAMESPACE_ALIAS (decl))
23+      continue;
24+
25     if (!DECL_IS_BUILTIN (decl) || DECL_NAMESPACE_STD_P (decl))
26     {
27       if (trace)
28--
292.25.0
30
31