[Issue 4075] New: [CTFE] forward reference error with auto

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 9 10:27:03 PDT 2010


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: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list