February 13, 2016 [Issue 15680] New: TypeInfo broken for typeof(null) | ||||
---|---|---|---|---|
| ||||
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). -- |
Copyright © 1999-2021 by the D Language Foundation