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

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to