We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using namespaces, types are not associated with the correct namespace. As a result, function calls are not resolved.
namespace ABC { namespace XYZ { struct A { A(); void foo(); }; } } using namespace ABC::XYZ; using namespace ABC; int main() { ABC::XYZ::A a; XYZ::A b; A c; a.foo(); b.foo(); c.foo(); return 0; }
All three variables (a, b, c) should have the same type.
a
b
c
Similar behavior:
namespace ABC { namespace XYZ { struct A { void foo(); }; } } namespace ABC { namespace XYZ { void foo() { ABC::XYZ::A b; XYZ::A a; A c; a.foo(); b.foo(); c.foo(); } } }
None
The text was updated successfully, but these errors were encountered:
I am beginning to hate C++. Why the heck is XYZ::A inside the name space ABC::XYZ pointing to ABC::XYZ::A...
XYZ::A
ABC::XYZ
ABC::XYZ::A
Sorry, something went wrong.
@peckto this might be solved with #1502
Successfully merging a pull request may close this issue.
Unexpected behavior
When using namespaces, types are not associated with the correct namespace.
As a result, function calls are not resolved.
Code of interest
All three variables (
a
,b
,c
) should have the same type.Similar behavior:
Extensions to the library, e.g. added or changed LanguageFrontends or Passes
None
Changes to the configuration
None
The text was updated successfully, but these errors were encountered: