File: handle_namespace_aliases_when_parsing_GCC_tree.patch

package info (click to toggle)
odb 2.4.0-17
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,868 kB
  • sloc: cpp: 41,219; sh: 11,329; makefile: 38
file content (28 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 3a1788234bfaa96ee093b68e9ba02cf7d5bdffe6 Mon Sep 17 00:00:00 2001
From: Boris Kolpackov <boris@codesynthesis.com>
Date: Fri, 5 Oct 2018 07:20:18 +0200
Subject: Handle namespace aliases when parsing GCC tree

---
 odb/parser.cxx | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/odb/parser.cxx b/odb/parser.cxx
index 968903c..7cce486 100644
--- a/odb/parser.cxx
+++ b/odb/parser.cxx
@@ -906,6 +906,11 @@ collect (tree ns)
       continue;
 #endif
 
+    // Ignore namespace aliases.
+    //
+    if (DECL_NAMESPACE_ALIAS (decl))
+      continue;
+
     if (!DECL_IS_BUILTIN (decl) || DECL_NAMESPACE_STD_P (decl))
     {
       if (trace)
-- 
cgit v1.1