[Issue 1038] explicit class cast breakage in 1.007
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 8 03:20:24 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1038
fvbommel at wxs.nl changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
------- Comment #1 from fvbommel at wxs.nl 2007-03-08 05:20 -------
Judging by the disassembled code, it appears "cast(A)(new B)"is compiled as if
it was "new A", it passes the ClassInfo for A instead of that for B to
_d_newclass...
By the way, the same thing happens in GDC[1], so it's most likely an error in
the front-end.
[1]: (gdc 0.23, using dmd 1.007), the x86-64 Linux binary from sourceforge.
--
More information about the Digitalmars-d-bugs
mailing list