[Issue 5238] PATCH: fix return of uninitialised var in interpret.c

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 18 21:16:21 PST 2010


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


Brad Roberts <braddr at puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |braddr at puremagic.com


--- Comment #1 from Brad Roberts <braddr at puremagic.com> 2010-11-18 21:15:05 PST ---
With this patch applied on my system, I still fail to pass runnable/interpret.d
with -O, but now a few lines later at 2110:

2106 int goodfoo3()
2107 {
2108    S[4] w = void; // uninitialized array of structs
2109    w[$-2].x = 217; // initialize one member
2110    return w[2].x;
2111 }
2112 static assert(goodfoo3()==217);

Simon, did you find this due to a failure with no changes to interpret.d or
with -O added to the set of compilation flags to test?

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