Bug 4106 – Error without line number accessing member of nonexistent struct member (D1 only)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Windows
Creation time
2010-04-20T00:55:00Z
Last change time
2010-11-26T00:08:38Z
Keywords
diagnostic, patch
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2010-04-20T00:55:58Z
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 by clugdbug — 2010-07-15T00:59:10Z
This was fixed in 2.047, but still exists in 1.062.
Comment #2 by clugdbug — 2010-11-26T00:08:38Z
Fixed for DMD1 in svn 738.