Skip to content
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

When in a namespace, function like keywords at start of line is tagged as a constructor. #51

Closed
matter123 opened this issue Apr 4, 2019 · 0 comments
Labels
🐛 Bug Something isn't working low priority

Comments

@matter123
Copy link
Collaborator

Example code:

namespace {
	using A = decltype(5);
	decltype(5) B = A();
}

This effects decltype, static_assert, template deduction guides (migh not be incorrect however), some macros.
This is because the namespace pattern includes :constructors before $base.

Removing :constructors seems to have almost no negative side effects. (One exception is test::test(){} is not tagged as a constructor, it is also not tagged outside of a namespace currently as well, so a better solution should be found). I cannot think of why constructors should be treated differently inside/outside a namespace.

@matter123 matter123 added 🐛 Bug Something isn't working low priority labels Apr 4, 2019
@matter123 matter123 changed the title When in a namespace function like keywords at start of line is tagged as a constructor. When in a namespace, function like keywords at start of line is tagged as a constructor. Apr 4, 2019
jeff-hykin added a commit that referenced this issue Apr 9, 2019
jeff-hykin added a commit that referenced this issue Apr 10, 2019
jeff-hykin added a commit that referenced this issue Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working low priority
Projects
None yet
Development

No branches or pull requests

2 participants