| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/ice9254a.d(15): Error: using the result of a comma expression is not allowed |
| 5 |
fail_compilation/ice9254a.d(15): Error: using the result of a comma expression is not allowed |
| 6 |
fail_compilation/ice9254a.d(15): Error: using the result of a comma expression is not allowed |
| 7 |
fail_compilation/ice9254a.d(15): Error: using the result of a comma expression is not allowed |
| 8 |
fail_compilation/ice9254a.d(15): Error: using the result of a comma expression is not allowed |
| 9 |
fail_compilation/ice9254a.d(15): Error: invalid `foreach` aggregate `false` of type `bool` |
| 10 |
--- |
| 11 |
*/ |
| 12 |
|
| 13 |
void main() |
| 14 |
{ |
| 15 |
foreach (divisor; !(2, 3, 4, 8, 7, 9)) |
| 16 |
{ |
| 17 |
// ice in ForeachRangeStatement::blockExit() |
| 18 |
foreach (v; 0..uint.max) {} |
| 19 |
|
| 20 |
// ice in WhileStatement::blockExit() |
| 21 |
while (1) {} |
| 22 |
} |
| 23 |
} |