April 09, 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@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@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: -------
February 12, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4075


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2011-02-12 15:04:10 PST ---
Duplicate of 2810, which is fixed in the upcoming release.

*** This issue has been marked as a duplicate of issue 2810 ***

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