http://d.puremagic.com/issues/show_bug.cgi?id=6173
Summary: Compiler treats read access of a delegate's function
pointer as an lvalue access
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Steven Schveighoffer <[email protected]> 2011-06-17
18:39:40 PDT ---
The following code:
struct S
{
void foo();
}
void main()
{
S s;
auto fptr = (&s.foo).funcptr;
}
Generates the following error:
testdelegatefuncptr.d(9): Error: &s.foo is not an lvalue
But clearly, I'm not using &s.foo as an lvalue.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------