[Issue 5790] "Error: variable result used before set" when -release -inline -O

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 2 12:50:10 PDT 2011


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


kennytm at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|x86                         |All


--- Comment #5 from kennytm at gmail.com 2011-08-02 12:50:03 PDT ---
Another test case, which is triggered only on Linux and FreeBSD.

-----------------------------------
void test5790d() {
    int x;
    int y = *(1 + &x);
}
-----------------------------------
$ dmd -O -c test5790d.d
Error: variable x used before set
-----------------------------------

See also
https://github.com/D-Programming-Language/dmd/pull/243#issuecomment-1706278.

-- 
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