www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Same Bug in dmd v0.94 as it was in v0.93

The 'D' code below was compiling and linking just fine in dmd v0.92, but now
with v0.93 and now v0.94 I'm getting a linker error:

<Linker error msg>

C:\dmd>bin\dmd ex1\main_roman.d ex1\roman.d
C:\dmd\bin\..\..\dm\bin\link.exe main_roman+roman,,,user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

roman.obj(roman)  Offset 00148H Record Type 0091
Error 1: Previous Definition Different : _D5roman7isroman5ROMANAa
--- errorlevel 1

</Linker error msg>

Once I move the "const char[] ROMAN = "IVXLCDMivxlcdm";" line out of both of the
isroman() functions and to the top of the code, everything then compiles and
links nicely again within dmd v0.93 and now v0.94. Walter has already agreed
that this is a bug, so I placing it here. 





































































-------------------------------------------------------------------
"Dare to reach for the Stars...Dare to Dream, Build, and Achieve!"
Jun 27 2004