D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16696 - [regression] Assert(0) or HLT reduced to separate dub package
Summary: [regression] Assert(0) or HLT reduced to separate dub package
Status: RESOLVED DUPLICATE of issue 16574
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Windows
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-16 23:36 UTC by Jesse Phillips
Modified: 2016-11-20 23:18 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jesse Phillips 2016-11-16 23:36:12 UTC
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 Jesse Phillips 2016-11-16 23:44:35 UTC
Created branch named specifically after this issue:

https://github.com/JesseKPhillips/jsonserialized/tree/issue16696
Comment 2 Martin Nowak 2016-11-20 22:56:28 UTC
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 Martin Nowak 2016-11-20 23:18:13 UTC
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 ***