Thread overview
[Issue 3899] New: CTFE: poor error message for use of uninitialized variable
Mar 08, 2010
Don
Mar 08, 2010
Don
Apr 10, 2010
Don
March 08, 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@puremagic.com
        ReportedBy: clugdbug@yahoo.com.au


--- Comment #0 from Don <clugdbug@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: -------
March 08, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3899


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-03-08 11:33:10 PST ---
Patched in bug 3901.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 10, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3899


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2010-04-09 19:13:24 PDT ---
Fixed DMD1.058 and DMD2.042.

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