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.065a] Issue 11718 - Unintended mangled names conflict of nested template structs #2953

Merged
merged 1 commit into from
Dec 16, 2013

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Dec 12, 2013

https://d.puremagic.com/issues/show_bug.cgi?id=11718
If a symbol has parent, the parent part of the mangled name should also be unique in each scopes.

Function symbols can have same identifiers in scope, so their parameters part must be always encoded in their mangled name to distinguish overloads.

When I fixed bug 9271 in #2877, I had naturally expected that behavior. However sadly mangle function had had a bug.

…e structs

If a symbol has parent, the parent part of the mangled name should also be unique in each scopes.

Function symbols can have same identifiers in scope, so their parameters part must be always encoded in their mangled name to distinguish overloads.

When I fixed bug 9271, I had naturally expected that behavior. However sadly `mangle` function had had a bug.
@WalterBright
Copy link
Member

Auto-merge toggled on

WalterBright added a commit that referenced this pull request Dec 16, 2013
[REG2.065a] Issue 11718 - Unintended mangled names conflict of nested template structs
@WalterBright WalterBright merged commit 95183bf into dlang:master Dec 16, 2013
@9rnsr 9rnsr deleted the fix11718 branch December 23, 2013 03:30
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.

2 participants