http://d.puremagic.com/issues/show_bug.cgi?id=3899
Summary: CTFE: poor error message for use of uninitialized variable Product: D Version: 1.055 Platform: Other OS/Version: Windows Status: NEW Keywords: diagnostic Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: clugd...@yahoo.com.au --- Comment #0 from Don <clugd...@yahoo.com.au> 2010-03-08 11:16:54 PST --- The code below generates the error "void initializer has no value" which is a bit unclear. (I'm entering this bug only because I've fixed it in another patch). ===== int gar() { ArrayRet z = void; ArrayRet w = z; z.x += 2; return z.x; } static assert(gar()==2); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------