Sterling-Augustine wrote:

This may be relevant to the fact that these are Clang modules, not C++ 20 
modules. Not sure.

We are seeing some issues with this change. Where things built fine before, we 
now have the problem below.

header_b.h:
```
#include "header_a.h" // Declares namespace_a, and various things inside it. 
namespace namespace_b = namespace_a;
```
and the error is:
```
<header_b.h>:13:34: error: declaration of 'namespace_a' must be imported from 
module 'module_c' before it is required
   13 | namespace namespace_b = ::<namespace_a>;
      |                                  ^
1 error generated.
```

Module_c declares more things in namespace_a, as do many other modules.

I'm working on a reduction, but there are thousands of files involved.

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

Reply via email to