Bug 7059 – Forward reference error with auto recursive function

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-12-03T05:57:00Z
Last change time
2011-12-03T06:06:08Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-12-03T05:57:51Z
D2 code: auto foo() { foo(); // line 2 } void main() {} DMD 2.057head gives: test.d(2): Error: forward reference to foo
Comment #1 by k.hara.pg — 2011-12-03T06:06:08Z
*** This issue has been marked as a duplicate of issue 5288 ***