[Issue 15680] New: TypeInfo broken for typeof(null)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Feb 13 13:08:19 PST 2016
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 at puremagic.com
Reporter: code at 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).
--
More information about the Digitalmars-d-bugs
mailing list