www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4106] New: Error without line number accessing member of nonexistant struct member

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: clugdbug yahoo.com.au


--- Comment #0 from Don <clugdbug 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: -------
Apr 20 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4106


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.057                       |D1
            Summary|Error without line number   |Error without line number
                   |accessing member of         |accessing member of
                   |nonexistant struct member   |nonexistant struct member
                   |                            |(D1 only)


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-07-15 00:59:10 PDT ---
This was fixed in 2.047, but still exists in 1.062.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 15 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4106


Don <clugdbug yahoo.com.au> changed:

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


--- Comment #2 from Don <clugdbug yahoo.com.au> 2010-11-26 00:08:38 PST ---
Fixed for DMD1 in svn 738.

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