[Issue 3605] Compiler accepts invalid variable declaration, which does not link

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3605

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|2.036   |D2

--


[Issue 3605] Compiler accepts invalid variable declaration, which does not link

2009-12-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3605



--- Comment #1 from Michal Minich michal.min...@gmail.com 2009-12-11 02:59:28 
PST ---
Correction: in example 2 i = 1; will not cause error, only writeln (i);
causes it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3605] Compiler accepts invalid variable declaration, which does not link

2009-12-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3605



--- Comment #4 from Michal Minich michal.min...@gmail.com 2009-12-11 04:15:06 
PST ---
Thank you for explanation Lars,

It did not occurred to me that int i(); can be function declaration. Maybe if
such declaration required extern(D) attribute, it would be more clear what's
going on. I cannot imagine what is this feature intended to do… Maybe it has
some use in connection with .di files…

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---