Bug 2472 – Delegates are not lvalue.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-11-25T16:13:00Z
Last change time
2015-06-09T05:11:51Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
e.insafutdinov

Comments

Comment #0 by e.insafutdinov — 2008-11-25T16:13:00Z
class A { void foo() { } } int main() { auto a = new A; auto x = (&a.foo).funcptr; } dmd output: Error: &a.foo is not an lvalue
Comment #1 by e.insafutdinov — 2008-11-25T16:15:45Z
while this works well: auto dlg = &a.foo; auto f_ptr = dlg.funcptr;
Comment #2 by yebblies — 2011-06-17T20:57:22Z
*** Issue 6173 has been marked as a duplicate of this issue. ***
Comment #3 by k.hara.pg — 2012-05-21T02:11:43Z
Comment #4 by github-bugzilla — 2012-05-21T12:21:43Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/df406f1de78236092fee2a311a806a1226a596d8 fix Issue 2472 - Delegates are not lvalue. https://github.com/D-Programming-Language/dmd/commit/acc992258b592f4f9ed849a1064c3066993ab196 Merge pull request #961 from 9rnsr/fix2472 Issue 2472 - Delegates are not lvalue.