A critical "undefined reference" bug
Status: Alpha
Brought to you by:
dvdfrdmn
I'm using the latest version (0.19) on MinGW build and
have found a critical bug. I attached a zip file with 3
source files, that should help you isolate the bug.
Steps to reproduce:
1. First, verify that a modified source compiles. From
src directory, comment line 3 of "main.d" ("import
Streams;" => "//import Streams;") and run:
> gdc.exe main.d Streams.d Tools.d
(project should compile)
2. Now edit revert changes back and compile again.
Compiler should complain about "undefined reference".
(The same complaint appears if I compile to object
files first and then link with gdc.exe - for example,
in Code::Blocks IDE)
Sources to reproduce bug