[Issue 2500] template struct methods are left unresolved if imported from multiple modules
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 9 06:30:04 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2500
schveiguy at yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version|Windows |All
------- Comment #2 from schveiguy at yahoo.com 2008-12-09 08:30 -------
Confirmed on Linux as well.
Note that the following commands work ok:
dmd A.d B.d C.d
or
dmd -c A.d B.d C.d
dmd A.o B.o C.o
It seems that in the first (without -c), the symbol is defined in A.o
In the second case, now B.o has the symbol defined, whereas if you compile B.d
separate, it is not defined. There is definitely a bug if compiling the files
into objects separately generates different code than compiling them in to
objects in one line.
--
More information about the Digitalmars-d-bugs
mailing list