[Issue 7059] New: Forward reference error with auto recursive function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 3 05:58:58 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7059

           Summary: Forward reference error with auto recursive function
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-12-03 05:57:51 PST ---
D2 code:


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


DMD 2.057head gives:

test.d(2): Error: forward reference to foo

-- 
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