https://issues.dlang.org/show_bug.cgi?id=14587

Steven Schveighoffer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Steven Schveighoffer <[email protected]> ---
A reduced version:

struct Card {
    int value;
    int suit;
}

void foo(Card card) {
    switch(card.value) {
    case 4: case 5: case 6: case 11:
        break;
    default:
    }
}

void main() {
    auto card = Card(11, 1);
    foo(card);
} 

Changing anything at this point seems to make it run properly.

--

Reply via email to