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
Created branch named specifically after this issue: https://github.com/JesseKPhillips/jsonserialized/tree/issue16696
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"
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 ***