http://d.puremagic.com/issues/show_bug.cgi?id=4514
Summary: Regression: Cannot cast from X* to X Product: D Version: D1 Platform: x86 OS/Version: Linux Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: llu...@gmail.com --- Comment #0 from Leandro Lucarella <llu...@gmail.com> 2010-07-26 20:23:23 PDT --- This worked in svn r584 (add -m32 switch): --- void g(void delegate(void*, void*) d); struct X { void f(void*, void*) {} void n() { g(&f); // line 8 } } --- But it breaks on posterior revisions. Well, r585 to r587 don't compile/link (I mean the compiler, not the test program); r588 and r589 compiles (the compiler), but the test doesn't compile anymore, with this error: t.d(8): Error: cannot cast from X* to X Maybe some bits of D2 (struct this being a reference?) has been accidentally "ported" to D1. I didn't tested with D2, though. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------