[Issue 4506] -O flag breaks some recursive functions.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 25 09:31:30 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4506


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #1 from bearophile_hugs at eml.cc 2010-07-25 09:31:29 PDT ---
This is very ugly. A reduced test case:

void main() {
    int c = 1;
    for (int k = 0; k < 2; k++) {
        assert((k == 0 && c == 1) || (k == 1 && c == -1));
        c *= -1;
    }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list