[clang] [clang] fix merging of UsingShadowDecl (PR #80245)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 3 23:01:29 PST 2024


================
@@ -0,0 +1,42 @@
+// RUN: rm -rf %t
+// RUN: split-file %s %t
+// RUN: cd %t
+//
+// RUN: %clang_cc1 -std=c++20 -I %t %t/A.cppm -emit-module-interface -o %t/A.pcm -verify
+// RUN: %clang_cc1 -std=c++20 -I %t %t/B.cpp -fmodule-file=A=%t/A.pcm -fsyntax-only -verify -ast-dump-all -ast-dump-filter baz | FileCheck %s
+
+//--- foo.h
+namespace baz {
+  using foo = char;
+  using baz::foo;
+}
+
+//--- A.cppm
+// expected-no-diagnostics
+module;
+#include "foo.h"
+export module A;
----------------
ChuanqiXu9 wrote:

This is not resolved

https://github.com/llvm/llvm-project/pull/80245


More information about the cfe-commits mailing list