-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
Conversation
Thanks for your pull request, @WalterBright! Bugzilla references
|
…Assertion failure
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()); |
There was a problem hiding this comment.
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.
Can one create two functions with the same prototype without an error ? Which purpose ? |
Yes. This is an old issue. |
Also responsible for duplicate manglings https://issues.dlang.org/show_bug.cgi?id=17352. |
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>
…Assertion failure