[Issue 12024] New: [REG DMD2.065-b2] template instantiation for swap(SysTime, SysTime) fails
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 29 02:41:28 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12024
Summary: [REG DMD2.065-b2] template instantiation for
swap(SysTime, SysTime) fails
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: sludwig at outerproduct.org
--- Comment #0 from Sönke Ludwig <sludwig at outerproduct.org> 2014-01-29 02:41:17 PST ---
Still works on 2.064. This bug in particular makes it impossible to sort an
array of SysTimes or an array of structs containing SysTime. Not sure if the
root cause lies in a Phobos change or in a DMD change.
---
import std.algorithm;
void main() {
SysTime a, b;
swap(a, b);
}
---
bug_sort.d(4): Error: template std.algorithm.swap cannot deduce function from
argument types !()(SysTime, SysTime), candidates are:
C:\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm.d(1997):
std.algorithm.swap(T)(ref T lhs, ref T rhs) if (allMutableFields!T &&
!is(typeof(T.init.proxySwap(T.init))))
C:\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm.d(2042):
std.algorithm.swap(T)(T lhs, T rhs) if (is(typeof(T.init.proxySwap(T.init))))
--
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