Bug 18651 – ice: assert in glue.d:777 when building these three trivial files

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-03-23T18:20:01Z
Last change time
2020-04-21T08:50:25Z
Keywords
ice, pull
Assigned to
No Owner
Creator
FeepingCreature

Comments

Comment #0 by default_357-line — 2018-03-23T18:20:01Z
Repro: echo "import std.datetime;" > a.d echo "import c;" > b.d echo "import std.algorithm; const var = sort(string[].init);" > c.d dmd -deps a.d b.d Outcome: core.exception.AssertError@dmd/glue.d(777): Assertion failure (segfault in release)
Comment #1 by razvan.nitu1305 — 2018-03-26T11:47:58Z
It looks like the order in which the files are provided matters: dmd -deps b.d a.d works as expected also working: dmd -deps a.d b.d c.d dmd -deps c.d b.d dmd -deps b.d c.d
Comment #2 by dlang-bot — 2020-03-23T09:32:00Z
@BorisCarvajal created dlang/dmd pull request #10960 "Fix Issue 18651 - ice: assert in glue.d:777 when building these three…" fixing this issue: - Fix Issue 18651 - ice: assert in glue.d:777 when building these three trivial files https://github.com/dlang/dmd/pull/10960
Comment #3 by dlang-bot — 2020-04-03T08:57:44Z
dlang/dmd pull request #10960 "Fix Issue 18651 - ice: assert in glue.d:777 when building these three…" was merged into stable: - 2f5854d3b785e1a72f7cc47535ea64d6e752b80f by Boris Carvajal: Fix Issue 18651 - ice: assert in glue.d:777 when building these three trivial files - cee9cb0d753ea0e532813d996d147c976a13d6ac by Boris Carvajal: Test case for issue 18651 https://github.com/dlang/dmd/pull/10960
Comment #4 by dlang-bot — 2020-04-21T08:50:25Z
dlang/dmd pull request #11027 "merge stable" was merged into master: - d96d44e229d25d7c88ffcd95f2b5dc34564a8136 by Boris Carvajal: Fix Issue 18651 - ice: assert in glue.d:777 when building these three… (#10960) Fix Issue 18651 - ice: assert in glue.d:777 when building these three… merged-on-behalf-of: Mathias LANG <[email protected]> https://github.com/dlang/dmd/pull/11027