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

fix Issue 17492 - [REG 2.066] [ICE] AssertError@ddmd/dclass.d(1007): … #6964

Merged
merged 1 commit into from
Jul 9, 2017

Conversation

WalterBright
Copy link
Member

…Assertion failure

@dlang-bot
Copy link
Contributor

dlang-bot commented Jul 3, 2017

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Description
17492 [REG 2.066] [ICE] AssertError@ddmd/dclass.d(1007): Assertion failure

@WalterBright WalterBright requested a review from MartinNowak July 4, 2017 17:54
@WalterBright WalterBright added the Severity:Regression PRs that fix regressions label Jul 4, 2017
printf("this = %p %s\n", this, this.toPrettyChars());
printf("type = %d sym = %p, %s\n", type.ty, cd, cd.toPrettyChars());
}
error("already exists at %s. Perhaps in another function with the same name?", cd.loc.toChars());
Copy link
Member

Choose a reason for hiding this comment

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

Maybe split this into an error an errorSupplemental?

error("already exists, perhaps in another function with the same name.");
errorSupplemental(cd.loc, "previous declaration found here.");

Rather than formating the location into the error string.

@Temtaime
Copy link
Contributor

Temtaime commented Jul 8, 2017

Can one create two functions with the same prototype without an error ? Which purpose ?

@WalterBright
Copy link
Member Author

Can one create two functions with the same prototype without an error ?

Yes. This is an old issue.

@MartinNowak
Copy link
Member

Yes. This is an old issue.

Also responsible for duplicate manglings https://issues.dlang.org/show_bug.cgi?id=17352.

@dlang-bot dlang-bot merged commit ed24195 into dlang:stable Jul 9, 2017
@WalterBright WalterBright deleted the fix17492 branch July 9, 2017 22:51
tramker pushed a commit to tramker/dmd that referenced this pull request Dec 14, 2017
fix Issue 17492 - [REG 2.066] [ICE] AssertError@ddmd/dclass.d(1007): …
merged-on-behalf-of: Martin Nowak <code@dawg.eu>

cherry-picked-by: Martin Krejcirik <mk@krej.cz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants