[Issue 12095] Wrong code with -O -inline and final functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 7 03:05:17 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12095



--- Comment #3 from Don <clugdbug at yahoo.com.au> 2014-02-07 03:05:15 PST ---
In fact it doesn't even need a pointer. Looks pretty fundamental.

void bug12905( int a, int b )
{
    int e = 0;
    if (e)
       assert (a);
    else
       assert (b);
}

class Bug12095
{
    void fun(int k)  {
        bug12905(k, 1);
    }
}

void main()
{
    Bug12095 yy = new Bug12095;
    yy.fun(0);
}

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


More information about the Digitalmars-d-bugs mailing list