Bug 14745 – Qualifiers rejected for delegate literals

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-06-28T19:11:00Z
Last change time
2015-10-04T18:22:00Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2015-06-28T19:11:03Z
This code is (correctly) accepted by DMD 2.067: void main(){ auto foo1()pure immutable{ return 0; } auto foo2()pure const{ return 0; } } But this is not: void main(){ auto dg1=()pure immutable{ return 0; }; auto dg2=()pure const{ return 0; }; } Both should compile. (There should be no difference in how qualifiers are handled for named and anonymous nested functions.)
Comment #1 by k.hara.pg — 2015-07-05T06:45:57Z
Comment #2 by github-bugzilla — 2015-08-30T14:11:47Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6b42d4df211895b225866f52bdef4e156949c6ce fix Issue 14745 - Qualifiers rejected for delegate literals https://github.com/D-Programming-Language/dmd/commit/cd96e7ad1af71c601484d474be9f03dc2a3d2fd5 Merge pull request #4800 from 9rnsr/fix14745 Issue 14745 - Qualifiers rejected for delegate literals
Comment #3 by k.hara.pg — 2015-09-02T08:12:51Z
Comment #4 by github-bugzilla — 2015-09-02T08:22:54Z
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/82b23acdd383b4d5a2249448c8fe565ecfd5fa4e fix Issue 14745 - Qualifiers rejected for delegate literals https://github.com/D-Programming-Language/dlang.org/commit/d8330a1739cb4327e96a66bbc6db1be7c96096a7 Merge pull request #1086 from 9rnsr/fix14745 Issue 14745 - Qualifiers rejected for delegate literals
Comment #5 by github-bugzilla — 2015-10-04T18:22:00Z