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

[REG2.068a] Issue 14844 - __traits(allMembers) must not visit yet not instantiated template members #4846

Merged
merged 1 commit into from Jul 30, 2015

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Jul 29, 2015

{
e->error("%s %s has no members", s->kind(), s->toChars());
goto Lfalse;
return new ErrorExp();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you introduce the ErrorExp, seems unrelated and is inconsistent with the goto Lfalse above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was just for the redundant error message. I think if any errors happen in semanticTraits, it should return ErrorExp. But it's not important point of this PR, so I tweaked test case, and then changed to use goto Lfalse in here.

@MartinNowak
Copy link
Member

Rest LGTM.

WalterBright added a commit that referenced this pull request Jul 30, 2015
[REG2.068a] Issue 14844 - __traits(allMembers) must not visit yet not instantiated template members
@WalterBright WalterBright merged commit d69289b into dlang:stable Jul 30, 2015
@9rnsr
Copy link
Contributor Author

9rnsr commented Jul 30, 2015

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants