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

           Summary: [CTFE] forward reference error with auto
           Product: D
           Version: future
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2010-04-09 10:26:59 PDT ---
auto foo() {
    return 0;
}
enum int _ = foo();
void main() {}


dmd 2.043 outputs:

test.d(4): Error: forward reference to foo
test.d(4): Error: function expected before (), not __error of type int


(This bug is derived from a split of bug 3911.)

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

Reply via email to