[Issue 2582] Significantly Increased Compile Times For DWT

2009-03-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2582


bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #3 from bugzi...@digitalmars.com  2009-03-11 14:53 ---
Fixed dmd 1.041


-- 



[Issue 2582] Significantly Increased Compile Times For DWT

2009-02-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2582





--- Comment #2 from moritzwarn...@web.de  2009-02-21 19:47 ---
I tried to compile QTD today (http://code.google.com/p/qtd/)
and encountered a problem that a file didn't finished compiling.

After some testing with several dmd versions I found out
that all tested versions before dmd 1.038 work,
but later versions are caught in an infinite loop.
It's the same problem for ldc, but gdc works (old front end version).

The problem can be reproduced with
"dmd -c qt/gui/QPushButton.d -ofqt/gui/QPushButton.o"
and dmd version 1.038 or later (or ldc).

The back trace for ldc looks like this:
(gdb) bt
#0  0x00545ed9 in Module::imports ()
#1  0x00546478 in Module::imports ()
#2  0x00546478 in Module::imports ()
#3  0x00546478 in Module::imports ()
#4  0x005bbf1e in TemplateInstance::semantic ()
#5  0x00573d57 in TypeInstance::resolve ()
#6  0x00571c30 in TypeInstance::semantic ()
#7  0x005973ea in VarDeclaration::semantic ()
#8  0x005c8f2c in ClassDeclaration::semantic ()
#9  0x00549bde in StorageClassDeclaration::semantic ()
#10 0x00549dc6 in ProtDeclaration::semantic ()
#11 0x005448c8 in Module::semantic ()
#12 0x005be2b4 in Import::semantic ()
#13 0x00549dc6 in ProtDeclaration::semantic ()
#14 0x005448c8 in Module::semantic ()
#15 0x005be2b4 in Import::semantic ()
#16 0x00549dc6 in ProtDeclaration::semantic ()
#17 0x005448c8 in Module::semantic ()
#18 0x005be2b4 in Import::semantic ()
#19 0x00549dc6 in ProtDeclaration::semantic ()
#20 0x005448c8 in Module::semantic ()
#21 0x005be2b4 in Import::semantic ()
#22 0x00549dc6 in ProtDeclaration::semantic ()
#23 0x005448c8 in Module::semantic ()

Looks like Module::imports from module.c is involved.
It was added in dmd 1.038.

Hope that helps. :)


-- 



[Issue 2582] Significantly Increased Compile Times For DWT

2009-02-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2582





--- Comment #1 from bugzi...@digitalmars.com  2009-02-15 20:39 ---
Error 1: Previous Definition Different : 
_D5tango4text4Text11__T4TextTaZ4Text4Span6__initZ

Before saying this is a bug in the linker, it's worth finding why there are
multiple definitions of the same thing in the source code.

http://www.digitalmars.com/ctg/OptlinkErrorMessages.html#previous_definition_different


--