[Issue 678] New: should this be a bug??

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 11 20:51:19 PST 2006


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

           Summary: should this be a bug??
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: davidl at 126.com


void[] t(){return null;}
void main()
{
        void* m;
        m=t().ptr;    //compiles
        m=t.ptr;      // fails, i'm worry about if let it through , maybe we
will have buggy code. but due to D's documentation this should be compiled
}


-- 



More information about the Digitalmars-d-bugs mailing list