Running dub test --build=release on this dub package https://github.com/FreeSlave/icontheme/tree/6ad7252f82b1d21c43b29ef6942eeaea0b346ab7 leads to dmd segmentation fault Backtrace: #0 0x0000000000745489 in toObjFile(Dsymbol*, bool) () #1 0x0000000000734b7e in genObjFile(Module*, bool) () #2 0x000000000069219b in dmd.mars.tryMain(ulong, const(char)**) () #3 0x0000000000692eff in D main ()
Created attachment 1700 [details] Dustmite result I added the reduced result produced by dustmite that can be run without dub: dmd -c icontheme-test-library.o -release -inline -Isource/ -main source/icontheme/cache.d source/icontheme/file.d source/icontheme/lookup.d source/icontheme/package.d
Can't reproduce on 2.079.0. So the issue can be marked as regression.
Still issue on dmd 2.082.0
When I run it I get: source/inilike\file.d(45): Deprecation: `std.algorithm.setops.No` is not visible from module `inilikefile` source/inilike\file.d(32): Error: `template` has no effect in expression `map(Range)(Range r) if (isInputRange!(Unqual!Range))` and no seg fault.
I can reproduce it. PR: https://github.com/dlang/dmd/pull/9075
(In reply to Walter Bright from comment #4) > When I run it I get: > > source/inilike\file.d(45): Deprecation: `std.algorithm.setops.No` is not > visible from module `inilikefile` > source/inilike\file.d(32): Error: `template` has no effect in expression > `map(Range)(Range r) if (isInputRange!(Unqual!Range))` > > and no seg fault. Maybe you are using a compiler < 2.0.79
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/19f49cf4216323af3f27292a243c5d576b5e857c Fix Issue 18938 - Dmd segfault when compiling this dub package in test release https://github.com/dlang/dmd/commit/e4aee5829153d5bcbe2c48d28606691865158e09 Merge pull request #9075 from RazvanN7/Issue_18938 Fix Issue 18938 - Dmd segfault when compiling this dub package in test release