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.066] Issue 13294 - [IFTI] IFTI fails or works incorrectly for function with const and mutable ref parameters of most types #3896

Merged
merged 1 commit into from Aug 25, 2014

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Aug 25, 2014

https://issues.dlang.org/show_bug.cgi?id=13294

This is more better implementation of enhancement 12290.
The first implementation #3353 was incomplete, so sadly it had introduced many IFTI regressions - 12403, 13026, 13180, 13223, and 13294.

Eventually I noticed that using typeMerge was wrong. It was the biggest root the regressions.

And, the enhancement 13127 was pointless change. Now it is mostly reverted.

@9rnsr
Copy link
Contributor Author

9rnsr commented Aug 25, 2014

To @WalterBright @andralex @AndrewEdwards and all other comitters:

Issue 13294 is a terrible regression in 2.066 release so it breaks many existing template function code. I think we should release minor update 2.066.1 in order to fix 13294.

@@ -1074,6 +1074,31 @@ MATCH TemplateDeclaration::leastAsSpecialized(Scope *sc, TemplateDeclaration *td
return MATCHnomatch;
}

struct TypeDeduced : Type
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be a class, not a struct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@9rnsr 9rnsr force-pushed the fix13294 branch 2 times, most recently from d05f866 to ee7c262 Compare August 25, 2014 17:43
… with const and mutable `ref` parameters of most types

This is more better implementation of enhancement 12290.
The first implementation dlang#3353 was incomplete, so sadly it had introduced many IFTI regressions - 12403, 13026, 13180, 13223, and 13294.

Eventually I noticed that using typeMerge was wrong. It was the biggest root the regressions.

And, the enhancement 13127 was pointless change. Now it is mostly reverted.
@WalterBright
Copy link
Member

The number of changes for a patch to merge with 2.066 makes me nervous, but will give it a try.

@WalterBright
Copy link
Member

Auto-merge toggled on

WalterBright added a commit that referenced this pull request Aug 25, 2014
[REG2.066] Issue 13294 - [IFTI] IFTI fails or works incorrectly for function with const and mutable `ref` parameters of most types
@WalterBright WalterBright merged commit a7786fa into dlang:master Aug 25, 2014
@9rnsr 9rnsr deleted the fix13294 branch August 25, 2014 23:50
9rnsr pushed a commit to 9rnsr/dmd that referenced this pull request Aug 26, 2014
[REG2.066] Issue 13294 - [IFTI] IFTI fails or works incorrectly for function with const and mutable `ref` parameters of most types
@yebblies
Copy link
Member

Adding a new type of Type makes me really nervous.

@CyberShadow
Copy link
Member

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

@pbackus
Copy link
Contributor

pbackus commented Aug 13, 2021

This PR introduced a regression:
https://issues.dlang.org/show_bug.cgi?id=22208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants