================
@@ -12077,8 +12077,20 @@ Decl *Sema::ActOnStartNamespaceDef(Scope *NamespcScope,
PrevNS = getStdNamespace();
IsStd = true;
AddToKnown = !IsInline;
+ } else if (R.isAmbiguous()) {
----------------
ChenMiaoi wrote:
What if it involves the global namespace `std`?
``` cc
namespace std { }
inline namespace B { namespace std {} }
namespace std {}
```
https://github.com/llvm/llvm-project/pull/234689
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits