[Issue 14587] DMD 2.067.1 generating crashing binary on OSX

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 15 06:49:31 PDT 2015


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

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> ---
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.

--


More information about the Digitalmars-d-bugs mailing list