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 14249 - Loose error check for incorrect template mixin #4454

Merged
merged 1 commit into from Apr 9, 2015

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Mar 5, 2015

if (!p->isScopeDsymbol())
{
::error(loc, "%sstatic constructor can only be member of module/aggregate/template, not %s %s",
(isSharedStaticCtorDeclaration() ? "shared " : ""), p->kind(), p->toChars());
Copy link
Member

Choose a reason for hiding this comment

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

This is causing building ddmd to fail, because (? string : string) will result in a string in D which can't be passed to error. Please add casts or a temporary const char * variable to make this work again.

@yebblies yebblies merged commit bdc92c7 into dlang:master Apr 9, 2015
@9rnsr 9rnsr deleted the fix14249 branch April 9, 2015 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants