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

           Summary: Error without line number accessing member of
                    nonexistant struct member
           Product: D
           Version: 1.057
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic, patch
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2010-04-20 00:55:58 PDT ---
struct Bug4106(int Q){}

int bug4106 =  Bug4106.nonexistent.garbage;

----
crash.d(242): Error: no property 'nonexistent' for type 'void'
Error: no property 'garbage' for type 'int'

It's a useless, parasitic error anyway. 

PATCH: expression.c 5877

    UnaExp::semantic(sc);

+    if (e1->op == TOKerror)
+        return e1;

    if (e1->op == TOKdotexp)

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

Reply via email to