What    |Removed                     |Added
                 CC|                            |

--- Comment #2 from 2011-10-23 08:04:47 PDT ---
(In reply to comment #1)
> I think this is right behavior.
> In D2, the implicit conversion from class type to void* is disabled. So
>     auto p = cast(void*) c;
> the expression c is transformed to c.s, and cause an error.

auto p = cast(void*) c; works if there is no alias this;. Implicit conversion
rules are irrelevant, because this is an explicit conversion. Therefore, I
think this is definitely a bug, because adding alias this should never disable
features to work, it should only be considered if the code would not compile

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to