Bug 696 – Error: (dg).ptr is not an lvalue

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2006-12-17T21:53:00Z
Last change time
2015-06-09T01:31:19Z
Assigned to
dvdfrdmn
Creator
kirklin.mcdonald

Comments

Comment #0 by kirklin.mcdonald — 2006-12-17T21:53:01Z
The following code works in DMD 0.177, but not in GDC 0.20: class A { void foo() { } } void main() { A a = new A; void delegate() dg; dg.ptr = a; dg.funcptr = &A.foo; dg(); } C:\Projects\test>gdc test.d test.d:8: Error: (dg).ptr is not an lvalue
Comment #1 by dvdfrdmn — 2006-12-20T21:34:25Z
Fixed in svn trunk
Comment #2 by thomas-dloop — 2006-12-23T10:21:41Z