Bug 16696 – [regression] Assert(0) or HLT reduced to separate dub package

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2016-11-16T23:36:00Z
Last change time
2016-11-20T23:18:13Z
Assigned to
nobody
Creator
Jesse.K.Phillips+D

Comments

Comment #0 by Jesse.K.Phillips+D — 2016-11-16T23:36:12Z
Sorry this isn't very small reproduction code. I was not able to reproduce by using the same code inside the std_data_json package. I was updating the project, jsonserialized to use the latest std_data_json dub package. I've committed to a branch the reduced test case. Clone the repository and checkout the branch "bug" https://github.com/JesseKPhillips/jsonserialized/tree/bug Run "dub test" Observe: object.Error@(0): assert(0) or HLT instruction This works with DMD 2.071
Comment #1 by Jesse.K.Phillips+D — 2016-11-16T23:44:35Z
Created branch named specifically after this issue: https://github.com/JesseKPhillips/jsonserialized/tree/issue16696
Comment #2 by code — 2016-11-20T22:56:28Z
For the next report, please list which dependent package versions were used. "dunit": "1.0.14", "std_data_json": "0.18.2", "taggedalgebraic": "0.10.4"
Comment #3 by code — 2016-11-20T23:18:13Z
Crashed because an aggregate was set to Type.terror, b/c of a forward reference during a speculative determineSize, and that type made it to the glue layer. https://github.com/dlang/dmd/blob/f5a73f36360fc5b2b2e93f2dd17082c4fed2b0bc/src/glue.d#L1545 *** This issue has been marked as a duplicate of issue 16574 ***