[Issue 5676] [CTFE] segfault using tuple containing struct that has opAssign
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 24 02:01:37 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5676
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
Summary|Evaluating nested |[CTFE] segfault using tuple
|std.typecons.tuple calls at |containing struct that has
|compile time crashes DMD |opAssign
OS/Version|Mac OS X |All
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2011-06-24 01:56:04 PDT ---
Reduced test case. It happens with compile time assignment to a tuple which
contains an object with an opAssign. Not a regression, failed in 2.040 as well.
struct S5676
{
int x;
void opAssign(S5676 rhs) { x = rhs.x;}
}
struct Tup5676(E...)
{
E g;
void foo(E values) { g = values; }
}
bool ice5676()
{
Tup5676!(S5676) q;
q.foo( S5676(3) );
assert( q.g[0].x == 3); // crashes here
return true;
}
static assert(ice5676());
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list