D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7059 - Forward reference error with auto recursive function
Summary: Forward reference error with auto recursive function
Status: RESOLVED DUPLICATE of issue 5288
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2011-12-03 05:57 UTC by bearophile_hugs
Modified: 2011-12-03 06:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2011-12-03 05:57:51 UTC
D2 code:


auto foo() {
    foo(); // line 2
}
void main() {}


DMD 2.057head gives:

test.d(2): Error: forward reference to foo
Comment 1 Kenji Hara 2011-12-03 06:06:08 UTC

*** This issue has been marked as a duplicate of issue 5288 ***