wilzbach / tools-test

1 stars 0 forks source link

rdmd does not recompile when --extra-file is added #165

Closed wilzbach closed 7 years ago

wilzbach commented 7 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#17198 From: dlang@croco-puzzle.com Reported version: D2 CC: ag0aep6g@gmail.com, dlang@croco-puzzle.com

wilzbach commented 7 years ago

Comment author: dlang@croco-puzzle.com

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 [...]

wilzbach commented 7 years ago

Comment author: ag0aep6g@gmail.com

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

wilzbach commented 7 years ago

Comment author: ag0aep6g@gmail.com

(In reply to ag0aep6g from comment BZ#1)

Fix: https://github.com/dlang/tools/pull/218

Superseded by https://github.com/dlang/tools/pull/219.

wilzbach commented 7 years ago

Comment author: github-bugzilla@puremagic.com

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 BZ#219 from aG0aep6G/17198

fix issue 17198 - rdmd does not recompile when --extra-file is added

wilzbach commented 7 years ago

Comment author: github-bugzilla@puremagic.com

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 BZ#219 from aG0aep6G/17198

wilzbach commented 7 years ago

Comment author: github-bugzilla@puremagic.com

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 BZ#219 from aG0aep6G/17198