balazske wrote: The current behavior is the same for named or anonymous namespace: If there is an existing namespace with same name in the target ("To") TU, the imported one is merged into this (this is what was wrong before this fix, the anonymous namespace was not merged if it was inside a `extern "C"` block). Probably not this is the best behavior (for anonymous namespace), but there is only one "anonymous namespace" for a single TU so it is not even possible to do it other way (without a difficult renaming).
https://github.com/llvm/llvm-project/pull/128735 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits