Skip to content

[REG2.067/2.068] Issue 14781 & 14962 - fix problematic purity inference introduced in #3626 - #4970

Merged
MartinNowak merged 2 commits into
dlang:stablefrom
9rnsr:fix14781
Aug 30, 2015
Merged

MartinNowak merged 2 commits into
dlang:stablefrom
9rnsr:fix14781

Conversation

@9rnsr

@9rnsr 9rnsr commented Aug 28, 2015

Copy link
Copy Markdown
Contributor

Issue 14781 - [REG2.067] impure delegate to pure function context should be able to modify context
Issue 14962 - [REG2.068] compiler inference of attributes for nested map seems broken


Issue 14962 is has been revealed since the PR #4464.

By the fix, some attribute inference order bug for template functions had been fixed - when foo() calls bar!(), and bar!() calls baz!(), the bar!() attribute should be inferred after the attrs of baz!() determined.

And then, compiler infers the purity of nested two lambdas in the 14962 test case, and the case has been rejected by the 14781 behavior.

So, fixing issue 14781 also fixes 14962 at the same time.

@9rnsr
9rnsr force-pushed the fix14781 branch 2 times, most recently from f8c3d3c to 6663e9e Compare August 28, 2015 22:50
9rnsr added 2 commits August 29, 2015 21:11
…ms broken

It has been revealed since the commit/PR:

f22d9db
dlang#4464

By the fix, some attribute inference order bug for template functions had
been fixed - when foo() calls bar!(), and bar!() calls baz!(), the bar!()
attribute should be inferred after the attrs of baz!() determined.

And then, compiler infers the purity of nested two lambdas in the 14962
test case, and the case has been rejected by the 14781 behavior.
MartinNowak added a commit that referenced this pull request Aug 30, 2015
[REG2.067/2.068] Issue 14781 & 14962 - fix problematic purity inference introduced in #3626
@MartinNowak
MartinNowak merged commit b30556b into dlang:stable Aug 30, 2015
@9rnsr

9rnsr commented Aug 30, 2015

Copy link
Copy Markdown
Contributor Author

thanks!

@9rnsr
9rnsr deleted the fix14781 branch September 1, 2015 09:26
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