www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - BUG: numerous aliases crashes Linker

I'm trying to write a standard vector library exactly from Cg, and after making
enough aliases the linker for dmd .88 refused to link (It got access violation)!


http://graphics.stanford.edu/~danielrh/vec.d

you can stop the crash by taking out useful aliases by setting 

dmd -version=DontCrash vec.d

The problem seems to happen if I make a separate file as well... so it seems
like a global restriction on the linker (i.e. I cannot make my program any
bigger than this toy)
it'd be nice to be able to make decent sized programs and not worry about max
linker size.  gdc has no problem with this code (just takes 10x as long to link)
--Daniel
May 07 2004