[Issue 4514] New: Regression: Cannot cast from X* to X
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 26 20:23:25 PDT 2010
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: nobody at puremagic.com
ReportedBy: llucax at gmail.com
--- Comment #0 from Leandro Lucarella <llucax at 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: -------
More information about the Digitalmars-d-bugs
mailing list