The following code causes a segfault in dmd (checked with current master): ============================== // c.d: import stdx.sorting; const var = sort(string.init); ============================== ============================== // stdx/sorting.d: import stdx.traits : Unqual; auto sort(Range)(Range r) { return Unqual!Range.init; } ============================== ============================== // stdx/traits.d: template Unqual(T) { import CoreUnqual; alias Unqual = CoreUnqual; } ============================== dmd c.d stdx\traits.d(3): Error: module CoreUnqual is in file 'CoreUnqual.d' which cannot be read import path[0] = C:\D\dmd2\windows\bin64\..\..\src\phobos import path[1] = C:\D\dmd2\windows\bin64\..\..\src\druntime\import stdx\traits.d(3): Error: module CoreUnqual is in file 'CoreUnqual.d' which cannot be read import path[0] = C:\D\dmd2\windows\bin64\..\..\src\phobos import path[1] = C:\D\dmd2\windows\bin64\..\..\src\druntime\import stdx\traits.d(3): Error: module CoreUnqual is in file 'CoreUnqual.d' which cannot be read import path[0] = C:\D\dmd2\windows\bin64\..\..\src\phobos import path[1] = C:\D\dmd2\windows\bin64\..\..\src\druntime\import
Introduced by: commit 17208b854a0ff67bbc05576ae72b966bbe1c60cb (refs/bisect/bad) Author: Cristian Creteanu <cristian.creteanu@protonmail.com> Date: Fri Dec 13 01:19:02 2019 +0200 Issue6592 - di header file created even if errors occur (#10635) * Moved header file generation at the end * Fix Issue 6592 - di header file created even if errors occur
*** This issue has been marked as a duplicate of issue 21091 ***