NagyDonat wrote:

If there is only one anonymous namespace for each TU, then what does the AST 
import do in a situation like
```c++
TEST_P(ImportAndMergeAnonymousNamespace, NamespaceInLinkageSpec) {
  const char *ToCode =
      R"(
      extern "C" {
      namespace {
      }
      }
      )";
  const char *FromCode =
      R"(
      namespace {
        void f();
      }
      )";
  test(ToCode, FromCode);
}
```
where one side is within an `extern "C"` block and the other is not?

Are these two anonymous namespaces merged by the ASTImporter code? Does this 
behavior cause any crashes?

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

Reply via email to