Bug 16214 – [REG2.069] ICE: Assertion `fd->semanticRun == PASSsemantic3done' failed.

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-06-27T21:39:27Z
Last change time
2020-06-24T19:42:27Z
Keywords
ice
Assigned to
No Owner
Creator
ag0aep6g
See also
https://issues.dlang.org/show_bug.cgi?id=20958

Comments

Comment #0 by ag0aep6g — 2016-06-27T21:39:27Z
Found by ted who posted to D.General: http://forum.dlang.org/post/[email protected] Reduced code (two files): ---- module a; import b; class LibasyncEventLoop : EventLoop {} module b; import a; struct Appender() { int[] arr; } struct Tuple() { alias A = Appender!(); } class EventLoop { auto f() { auto x = [Tuple!().init]; } } ---- `dmd -c a.d` fails with: ---- dmd: glue.c:809: void FuncDeclaration_toObjFile(FuncDeclaration*, bool): Assertion `fd->semanticRun == PASSsemantic3done' failed. Aborted (core dumped) ---- Compiles with 2.068. ICE occurs since 2.069.
Comment #1 by schuetzm — 2016-06-29T13:21:24Z
This is the culprit, according to digger: https://github.com/D-Programming-Language/dmd/pull/5166
Comment #2 by bugzilla — 2018-12-14T05:36:09Z
It's working now.
Comment #3 by ag0aep6g — 2018-12-14T20:15:03Z
(In reply to Walter Bright from comment #2) > It's working now. Still fails for me. Segfaults with DMD64 D Compiler v2.083.1 and with DMD64 D Compiler v2.083.1-449-geb782a17f (current git master). Tested on Ubuntu 18.10. Reopening.
Comment #4 by razvan.nitu1305 — 2018-12-18T13:08:29Z
Comment #5 by github-bugzilla — 2018-12-21T03:45:45Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/07a1004a6d16a987606d9d682eb863eaa1b0d3e6 Fix Issue 16214 - [REG2.069] ICE: Assertion fd->semanticRun == PASSsemantic3done failed https://github.com/dlang/dmd/commit/076a217b3deacb78bc50242db6986cbaec54708d Merge pull request #9101 from RazvanN7/Issue_16214 Fix Issue 16214 - [REG2.069] ICE: Assertion fd->semanticRun == PASSsemantic3done failed
Comment #6 by dlang-bot — 2019-06-16T20:57:29Z
dlang/dmd pull request #10046 "[dmd-cxx] Backport semanticRun refactoring and recursive semantic SEGV bug fixes" was merged into dmd-cxx: - 3bed0808695ba1c11c47e0c48b12effa9dc542c6 by RazvanN7: Fix Issue 16214 - [REG2.069] ICE: Assertion fd->semanticRun == PASSsemantic3done failed https://github.com/dlang/dmd/pull/10046