D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4106 - Error without line number accessing member of nonexistent struct member (D1 only)
Summary: Error without line number accessing member of nonexistent struct member (D1 o...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: diagnostic, patch
Depends on:
Blocks:
 
Reported: 2010-04-20 00:55 UTC by Don
Modified: 2010-11-26 00:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2010-04-20 00:55:58 UTC
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)
Comment 1 Don 2010-07-15 00:59:10 UTC
This was fixed in 2.047, but still exists in 1.062.
Comment 2 Don 2010-11-26 00:08:38 UTC
Fixed for DMD1 in svn 738.