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: [email protected]
Reporter: [email protected]
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
--
