0009-Handle-namespace-aliases-when-parsing-GCC-tree.patch 779 B

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