[Issue 13468] Wrong code when comparing class reference with typeof(null)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Oct 2 10:56:21 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13468

--- Comment #6 from hsteoh at quickfur.ath.cx ---
Looking at the disassembly, in the first (working) case, Object.opEquals() is
called directly. In the second (segfaulting) case, it appears to be doing a
lookup of the vtable (or perhaps typeinfo?) of either C or typeof(null) and
dereferencing it without checking for null.

--


More information about the Digitalmars-d-bugs mailing list