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 10658 - Cannot merge template overload set by using alias declaration #2417

Merged
2 commits merged into from May 14, 2014

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Jul 29, 2013

http://d.puremagic.com/issues/show_bug.cgi?id=10658

This relies on the refactoring PR #2401.

Add new OverDeclaration for template overload set merging.

@9rnsr
Copy link
Contributor Author

9rnsr commented Jul 31, 2013

Few hours ago #2401 was merged and I rebased commits onto master. Now this change contains just only essential changes.

@9rnsr 9rnsr closed this Mar 14, 2014
@9rnsr 9rnsr deleted the fix10658 branch March 14, 2014 01:35
@9rnsr 9rnsr restored the fix10658 branch March 14, 2014 01:39
@9rnsr 9rnsr reopened this Mar 14, 2014
@MartinNowak
Copy link
Member

LGTM, but does it allow to merge function overload sets and template overload sets?

s->parent = sc->parent;
}
}
else if (OverDeclaration *od = sa->isOverDeclaration())
Copy link

Choose a reason for hiding this comment

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

This block is virtually the same as the one before it. I hope they don't go out of sync one day.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Essentially yes. In the future I'd like to improve the code to handle overloadings, but today it is necessary.

@ghost
Copy link

ghost commented May 9, 2014

LGTM, but does it allow to merge function overload sets and template overload sets?

I'm also interested in this. Otherwise this pull gets a LGTM as well. It's great to see this finally fixed.

9rnsr added 2 commits May 14, 2014 19:44
…eclaration

- Add OverDeclaration and see it in overloadApply.
- Use OverDeclaration for template overload set merging.
- Check OverDeclaration in DotVarExp and VarExp.
@9rnsr
Copy link
Contributor Author

9rnsr commented May 14, 2014

LGTM, but does it allow to merge function overload sets and template overload sets?

I'm also interested in this.

Sorry, this PR is not perfect to handle the mixing of templates and functions overloading. I'm planning to merge FuncAliasDeclation into OverDeclaration to handle both functions and function templates in same way.

This is the first step to do it.

@ghost
Copy link

ghost commented May 14, 2014

Auto-merge toggled on

ghost pushed a commit that referenced this pull request May 14, 2014
Issue 10658 - Cannot merge template overload set by using alias declaration
@ghost ghost merged commit 994f1ea into dlang:master May 14, 2014
@9rnsr
Copy link
Contributor Author

9rnsr commented May 14, 2014

Thanks!!

@9rnsr 9rnsr deleted the fix10658 branch May 14, 2014 11:23
@CyberShadow
Copy link
Member

This pull request introduced a regression:
https://issues.dlang.org/show_bug.cgi?id=14554

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants