test.d: module test; import std.stdio; void main() { B tmp = cast(B)Object.factory("test2.BB"); tmp.m1(); } interface A { abstract void m1(); } interface B:A { abstract void m2(); } class AA:A { override void m1() { writeln("A"); } } test2.d: module test2; import std.stdio; import test; class BB:AA,B { override void m2() { writeln("B"); } } And here is what I get when compiling: $> rdmd test.d segmentation fault $> rdmd --extra-file=test2.d test.d segmentation fault $> rm -rf /tmp/.rdmd-1000/ $> rdmd --extra-file=test2.d test.d A Using --chatty on the second invocation shows, that no recompilation takes place. $> rdmd --version rdmd build 20170122 [...]
Simplified test case: test.d: ---- int x = 1; int main() { return x; } ---- test2.d: ---- import test; static this() { x = 0; } ---- rdmd invocations as before. Fix: https://github.com/dlang/tools/pull/218
(In reply to ag0aep6g from comment #1) > Fix: https://github.com/dlang/tools/pull/218 Superseded by <https://github.com/dlang/tools/pull/219>.
Commits pushed to stable at https://github.com/dlang/tools https://github.com/dlang/tools/commit/5ffca7b0e097644fbcffbee8ba755e4ae48c9d9f fix issue 17198 - rdmd does not recompile when --extra-file is added https://github.com/dlang/tools/commit/790b223fd22193c7c7ef4d65bd3db226da800450 Merge pull request #219 from aG0aep6G/17198 fix issue 17198 - rdmd does not recompile when --extra-file is added
Commits pushed to master at https://github.com/dlang/tools https://github.com/dlang/tools/commit/5ffca7b0e097644fbcffbee8ba755e4ae48c9d9f fix issue 17198 - rdmd does not recompile when --extra-file is added https://github.com/dlang/tools/commit/790b223fd22193c7c7ef4d65bd3db226da800450 Merge pull request #219 from aG0aep6G/17198
Commits pushed to newCTFE at https://github.com/dlang/tools https://github.com/dlang/tools/commit/5ffca7b0e097644fbcffbee8ba755e4ae48c9d9f fix issue 17198 - rdmd does not recompile when --extra-file is added https://github.com/dlang/tools/commit/790b223fd22193c7c7ef4d65bd3db226da800450 Merge pull request #219 from aG0aep6G/17198