Slightly reduced, fails on 2.059:
---
int bug8416(Options...)()
{
foreach (Option; Options) {}
return 1;
}
void test8416() {
bool var;
static assert( bug8416!(var) == 1 );
}
---
But this code works on github. Probably a duplicate of a recently fixed bug.