← Back to index
|
Original Bugzilla link
Bug 14813 – wrong code: code with undeclared variables compiles
Status
RESOLVED
Resolution
INVALID
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2015-07-20T06:58:00Z
Last change time
2015-07-20T07:53:18Z
Assigned to
nobody
Creator
timothee.cour2
Comments
Comment #0
by timothee.cour2 — 2015-07-20T06:58:45Z
/+ dmd -c -o- main.d how come this even compiles? +/ main.d: ----------- void fun() { alias A = void delegate(int); //WTF? A temp1 = (some_inexistant_field) { }; //WTF? A temp2 = delegate(some_inexistant_field) { }; alias A2 = void delegate(int,double); //WTF? A2 temp3 = (some_inexistant_field,sadfasfd) { }; }
Comment #1
by timothee.cour2 — 2015-07-20T07:53:18Z
It's valid code. not sure what i was thinking... happens when you post late