| 1 |
// https://bugzilla.gdcproject.org/show_bug.cgi?id=212 |
| 2 |
// { dg-do compile } |
| 3 |
|
| 4 |
template hasElaborateAssign212(S) |
| 5 |
{ |
| 6 |
enum hasElaborateAssign212 = is(typeof(S.init.opAssign(rvalueOf212!S))) || |
| 7 |
is(typeof(lvalueOf212!S)) ; |
| 8 |
} |
| 9 |
|
| 10 |
T rvalueOf212(T)(); |
| 11 |
|
| 12 |
T lvalueOf212(T)(); |
| 13 |
|
| 14 |
|
| 15 |
template TypeTuple212(TList...) |
| 16 |
{ |
| 17 |
alias TypeTuple212 = TList; |
| 18 |
} |
| 19 |
|
| 20 |
template Tuple212() |
| 21 |
{ |
| 22 |
struct Tuple212 |
| 23 |
{ |
| 24 |
void opAssign(R)(R) |
| 25 |
{ |
| 26 |
if (hasElaborateAssign212!R) |
| 27 |
{ |
| 28 |
} |
| 29 |
} |
| 30 |
} |
| 31 |
} |
| 32 |
|
| 33 |
ref emplaceRef212() |
| 34 |
{ |
| 35 |
static if (!hasElaborateAssign212!(Tuple212!())) |
| 36 |
chunk; |
| 37 |
} |
| 38 |
|
| 39 |
class TaskPool212 |
| 40 |
{ |
| 41 |
void reduce() |
| 42 |
{ |
| 43 |
Tuple212!() seed = void; |
| 44 |
Tuple212!()[] results; |
| 45 |
foreach(i; TypeTuple212!(0, 1)) |
| 46 |
results[i] = seed; |
| 47 |
} |
| 48 |
} |