[Issue 19689] New: large types cannot be moved
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 20 08:26:09 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19689
Issue ID: 19689
Summary: large types cannot be moved
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: default_357-line at yahoo.de
struct VeryLargeType
{
static foreach (i; 500.iota)
{
mixin(format!"int v%s;"(i));
}
}
unittest
{
VeryLargeType a, b;
move(a, b);
}
Result: std/traits.d(2848): Error: template instance
`std.traits.RepresentationTypeTuple!(VeryLargeType).Impl!(int, int, int)`
recursive expansion
Expected: not that.
--
More information about the Digitalmars-d-bugs
mailing list