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

Issue 6870 - type qualifiers behave inconsistently in combination with typeof #502

Merged
merged 1 commit into from
Nov 14, 2011

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Nov 8, 2011

@@ -6352,6 +6352,7 @@ Type *TypeTypeof::semantic(Loc loc, Scope *sc)
goto Lerr;
}
t = exp->type;
t = t->addMod(mod);
if (!t)
Copy link
Contributor

Choose a reason for hiding this comment

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

If this test is not redundant then the added line might call a method on a null pointer. Otherwise it might be better to remove the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahh, this is definitely a bug! Thanks.

WalterBright added a commit that referenced this pull request Nov 14, 2011
Issue 6870 - type qualifiers behave inconsistently in combination with typeof
@WalterBright WalterBright merged commit 4af3787 into dlang:master Nov 14, 2011
@9rnsr
Copy link
Contributor Author

9rnsr commented Nov 14, 2011

@WalterBright, I have posted an additional pull in #512, that is pointed out by @tgehr.
Please merge it together.

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

Successfully merging this pull request may close these issues.

3 participants