Invalid method called - reduced test case

Tom S h3r3tic at -remove-.mat.uni.torun.pl
Fri Mar 3 12:28:17 PST 2006


DMD seems to be picky about the order of files passed to it. The 
attached program is a reduced version of what Ant encountered while 
working on Duit. I believe this is the same bug that Tyler reported 
regarding DWT.
The .zip archive contains 3 D modules: a.d, b.d and main.d

When compiled using:
dmd b.d a.d main.d

...the resulting executable will be buggy. More specifically, an 
assertion (that I put in a function which should never be called) will 
fail :)

The behavior is the same if one builds a .lib or .a file using
dmd -c b.d a.d

...and then links to main.d

Tested on Windows and Linux using the #D compiler farm ;)


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d-pu s+: a-->----- C+++$>++++ UL P+ L+ E--- W++ N++ o? K? w++ !O 
!M V? PS- PE- Y PGP t 5 X? R tv-- b DI- D+ G e>+++ h>++ !r !y
------END GEEK CODE BLOCK------

Tomasz Stachowiak  /+ a.k.a. h3r3tic +/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DMDbug.zip
Type: application/zip
Size: 762 bytes
Desc: not available
Url : http://lists.puremagic.com/pipermail/digitalmars-d-bugs/attachments/20060303/cde0d8fb/attachment.zip 


More information about the Digitalmars-d-bugs mailing list