digitalmars.D.bugs - [Issue 15680] New: TypeInfo broken for typeof(null)
- via Digitalmars-d-bugs (23/23) Feb 13 2016 https://issues.dlang.org/show_bug.cgi?id=15680
https://issues.dlang.org/show_bug.cgi?id=15680 Issue ID: 15680 Summary: TypeInfo broken for typeof(null) Product: D Version: D2 Hardware: x86_64 OS: Mac OS X Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: code klickverbot.at This crashes on DMD 2.070.0: --- void main() { import core.stdc.stdio; printf("%p\n", typeid(null).initializer().ptr); } --- I haven't had a close look at the codegen, but it seems like DMD emits TypeInfo (the abstract base class) for typeof(null). --
Feb 13 2016