[Issue 12146] Linker error with __xopCmp, __xopEq, TypeInfo
https://issues.dlang.org/show_bug.cgi?id=12146 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 12146] Linker error with __xopCmp, __xopEq, TypeInfo
https://d.puremagic.com/issues/show_bug.cgi?id=12146 --- Comment #5 from Martin Nowak c...@dawg.eu 2014-02-13 05:41:47 PST --- I think we should try to solve this by only creating one TypeInfo per struct, but always generate it, when the struct is defined. If the TypeInfo is referenced somewhere else, it will need to link against the module that defined the struct. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 12146] Linker error with __xopCmp, __xopEq, TypeInfo
https://d.puremagic.com/issues/show_bug.cgi?id=12146 Martin Nowak c...@dawg.eu changed: What|Removed |Added Keywords||pull --- Comment #6 from Martin Nowak c...@dawg.eu 2014-02-13 16:41:25 PST --- The root cause for this bug was, that the TypeInfo for structs can only be generated after semantic3 for that struct was run. This is not possible if the TypeInfo is needed during the obj generation pass, e.g. because it is referenced by an array TypeInfo. https://github.com/D-Programming-Language/dmd/pull/3255 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 12146] Linker error with __xopCmp, __xopEq, TypeInfo
https://d.puremagic.com/issues/show_bug.cgi?id=12146 --- Comment #1 from Martin Nowak c...@dawg.eu 2014-02-12 17:19:55 PST --- I think this is caused by this change. https://github.com/D-Programming-Language/dmd/pull/2582/files#diff-ffa5582af7d723c487d4a11ac6743b85L739 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 12146] Linker error with __xopCmp, __xopEq, TypeInfo
https://d.puremagic.com/issues/show_bug.cgi?id=12146 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC||thecybersha...@gmail.com --- Comment #2 from Vladimir Panteleev thecybersha...@gmail.com 2014-02-13 03:49:23 EET --- Looks like a duplicate of bug 12144. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 12146] Linker error with __xopCmp, __xopEq, TypeInfo
https://d.puremagic.com/issues/show_bug.cgi?id=12146 Martin Nowak c...@dawg.eu changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Comment #4 from Martin Nowak c...@dawg.eu 2014-02-12 17:52:30 PST --- *** This issue has been marked as a duplicate of issue 12144 *** -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 12146] Linker error with __xopCmp, __xopEq, TypeInfo
https://d.puremagic.com/issues/show_bug.cgi?id=12146 --- Comment #3 from Martin Nowak c...@dawg.eu 2014-02-12 17:50:45 PST --- Also happens with a sensible opCmp, like int opCmp(const ref Bar) { return 0; } It must deviate from the default signature though, i.e. can't be int opCmp(const ref Bar) const { return 0; } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---