[clang] [Clang] Preserve namespace identity for inline namespace redeclarations (PR #233862)

Corentin Kerisit via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 22 01:22:40 PDT 2026


cerisier wrote:

> Also, this PR is close enough to [cplusplus.github.io/CWG/issues/2061.html](https://cplusplus.github.io/CWG/issues/2061.html) that it sounds reasonable to add a C++ DR test for it. If you're new to C++ DR tests, we have documentation about them: [clang.llvm.org/docs/InternalsManual.html#c-defect-report-tests](https://clang.llvm.org/docs/InternalsManual.html#c-defect-report-tests)

Thanks for the pointer, I am quite new to this part of the codebase.

There was already a CWG 2061 test in cwg20xx.cpp, so I added a check that exposes this bug.

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


More information about the cfe-commits mailing list