-
Notifications
You must be signed in to change notification settings - Fork 13.5k
using namespace std
before include causes ambiguous reference error
#96423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@llvm/issue-subscribers-clang-modules Author: None (ncihnegn)
With the patch suggested in #96147 applied on e7622ab,
Source:
Errors:
|
From the error message, I suspect this is a library issue too. But I am not sure if it is amendable since it looks like problems from C libraries. |
Does the compilation issue disappear when you remove the |
Yes. |
I feel this is some use case problems. Maybe it worth to discuss this in WG21? |
Why? This will be completely fine if not using modules. |
Since without modules, there is if guards and So that back in this example, look at the reproducer: it says, when the compiler parse So it makes sense to me. |
And this issue may be relevant: #80663 We can get rid of such issues if we can provide that. |
Is it possible that this is actually related to the
IIRC, |
After I review the issue, I feel this may be another compiler's bug. The compiler should be able to recognize the two |
With the patch suggested in #96147 applied on e7622ab,
Source:
Errors:
The text was updated successfully, but these errors were encountered: