[Issue 3899] New: CTFE: poor error message for use of uninitialized variable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 8 11:16:56 PST 2010
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: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at 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: -------
More information about the Digitalmars-d-bugs
mailing list