Bug 10620 – ICE when using TypeInfo.getHash at compile time
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-11T23:48:00Z
Last change time
2015-06-09T05:13:50Z
Keywords
ice
Assigned to
nobody
Creator
doob
Comments
Comment #0 by doob — 2013-07-11T23:48:56Z
The following code:
enum typeId = typeid(int);
enum hash = typeId.getHash(cast(void*) 3);
Results in the following error:
Assertion failed: (thisval && thisval->op == TOKclassreference), function interpret, file interpret.c, line 4067.
Comment #1 by clugdbug — 2013-09-23T00:41:27Z
*** This issue has been marked as a duplicate of issue 10579 ***