[Issue 12146] New: Linker error with __xopCmp, __xopEq, TypeInfo
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 12 16:56:39 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12146
Summary: Linker error with __xopCmp, __xopEq, TypeInfo
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: link-failure
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: code at dawg.eu
--- Comment #0 from Martin Nowak <code at dawg.eu> 2014-02-12 16:56:35 PST ---
cat > bar.d << CODE
struct Bar
{
bool opCmp(ubyte val) { return false; }
}
CODE
cat > foo.d << CODE
import bar;
struct Appender
{
Bar[] tokens; // references TypeInfo of Bar!(ubyte)
// TypeInfo references __xopCmp
}
void main()
{
}
CODE
dmd -lib bar
dmd foo bar.a
----
foo.o:(.data._D18TypeInfo_S3bar3Bar6__initZ+0x40): undefined reference to
`_D3bar3Bar8__xopCmpFKxS3bar3BarKxS3bar3BarZi'
----
It seems, that during compilation of the bar lib the generated _xOpCmp function
isn't emitted to the object file.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list