[Issue 4106] New: Error without line number accessing member of nonexistant struct member
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 20 00:56:00 PDT 2010
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 at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at 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: -------
More information about the Digitalmars-d-bugs
mailing list