================ @@ -7,3 +7,15 @@ namespace PR5840 { int Base = 10; struct Derived : Base {}; } + +namespace issue_16855 { + struct x {}; + namespace + { + namespace x + { + struct y : x + {}; + } + } +} ---------------- Sirraide wrote: nit: missing newline https://github.com/llvm/llvm-project/pull/112166