[Issue 5288] auto return: forward ref error when using it with recursive functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 4 08:57:04 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5288
Maksim Zholudev <maximzms at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maximzms at gmail.com
--- Comment #5 from Maksim Zholudev <maximzms at gmail.com> 2013-03-04 08:57:00 PST ---
Now this doesn't work even if lines 3 and 5 go in reverse order:
--------------------
auto x(int z) {
if (z == 1) {
return z;
} else {
return x(z);
}
}
void main() {}
--------------------
test.d(6): Error: forward reference to x
--------------------
DMD from Git head:
https://github.com/D-Programming-Language/dmd/commit/13b3bdbf3819fec810ebfb077957510612dfa815
--
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