← Back to index
|
Original Bugzilla link
Bug 12422 – [REG2.055] Templated nested function is inferred as `pure` even if it calls impure functions
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-20T03:51:00Z
Last change time
2017-07-19T17:39:05Z
Keywords
accepts-invalid, pull
Assigned to
nobody
Creator
verylonglogin.reg
Comments
Comment #0
by verylonglogin.reg — 2014-03-20T03:51:06Z
This code shouldn't compile: --- int i; void f() { ++i; } void main() pure { void g()() { f(); } g(); } ---
Comment #1
by k.hara.pg — 2015-02-23T11:08:26Z
Regression from 2.055.
Comment #2
by k.hara.pg — 2015-02-23T14:47:26Z
https://github.com/D-Programming-Language/dmd/pull/4441
Comment #3
by github-bugzilla — 2015-02-27T06:35:50Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/a326fcfd501514a41341f8e3a4901fe575145016
fix Issue 12422 - Templated nested function is inferred as `pure` even if it calls impure functions
https://github.com/D-Programming-Language/dmd/commit/b00a79fae2560ee7b82c336bd9403f2d9071c22b
Merge pull request #4441 from 9rnsr/fix12422 [REG2.055] Issue 12422 - Templated nested function is inferred as `pure` even if it calls impure functions
Comment #4
by github-bugzilla — 2015-02-28T21:07:29Z
Commit pushed to 2.067 at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/128849de37d51ec6cd08860d1db08741bbd82046
Merge pull request #4441 from 9rnsr/fix12422 [REG2.055] Issue 12422 - Templated nested function is inferred as `pure` even if it calls impure functions
Comment #5
by github-bugzilla — 2015-04-11T12:24:44Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/128849de37d51ec6cd08860d1db08741bbd82046
Merge pull request #4441 from 9rnsr/fix12422
Comment #6
by github-bugzilla — 2015-06-17T21:01:21Z
Commits pushed to stable at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/a326fcfd501514a41341f8e3a4901fe575145016
fix Issue 12422 - Templated nested function is inferred as `pure` even if it calls impure functions
https://github.com/D-Programming-Language/dmd/commit/b00a79fae2560ee7b82c336bd9403f2d9071c22b
Merge pull request #4441 from 9rnsr/fix12422
Comment #7
by github-bugzilla — 2017-07-19T17:39:05Z
Commits pushed to dmd-cxx at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/a326fcfd501514a41341f8e3a4901fe575145016
fix Issue 12422 - Templated nested function is inferred as `pure` even if it calls impure functions
https://github.com/dlang/dmd/commit/b00a79fae2560ee7b82c336bd9403f2d9071c22b
Merge pull request #4441 from 9rnsr/fix12422