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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Martin Nowak <[email protected]> 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: -------