[Issue 16320] New: DMD segfault with T.classinfo.hashOf
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 25 05:56:52 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16320
Issue ID: 16320
Summary: DMD segfault with T.classinfo.hashOf
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: cauterite at gmail.com
https://dpaste.dzfl.pl/082f070327f5
import std.stdio;
class T {};
void main() {
T foo;
switch (typeid(foo).hashOf) {
case T.classinfo.hashOf :
writeln(`foo isa T`);
break;
default : break;
};
};
segfault with DMD v2.071.1
--
More information about the Digitalmars-d-bugs
mailing list