digitalmars.D.bugs - [Issue 14813] New: wrong code: code with undeclared variables compiles
- via Digitalmars-d-bugs (31/31) Jul 19 2015 https://issues.dlang.org/show_bug.cgi?id=14813
https://issues.dlang.org/show_bug.cgi?id=14813 Issue ID: 14813 Summary: wrong code: code with undeclared variables compiles Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: blocker Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: timothee.cour2 gmail.com /+ 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) { }; } --
Jul 19 2015