================
@@ -0,0 +1,58 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++11 -emit-llvm -o - 
%s | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 -emit-llvm -o - 
%s | FileCheck %s
+
+// GH95154: reopening a namespace through an inline namespace must not change
+// the namespace's semantic parent, including for newly declared members.
+namespace reopen {
+inline namespace v1 {
+namespace ns {
+struct Y;
+} // namespace ns
+} // namespace v1
+
+// CHECK-DAG: define {{.*}} @_ZN6reopen6beforeEPNS_2v12ns1YE(
----------------
cerisier wrote:

Sorry about that, lack of double checking my bot...

https://github.com/llvm/llvm-project/pull/233862
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to