digitalmars.D.bugs - [Issue 4075] New: [CTFE] forward reference error with auto
- d-bugmail puremagic.com (26/26) Apr 09 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4075
- d-bugmail puremagic.com (12/12) Feb 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=4075
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
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: -------
Apr 09 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4075
Don <clugdbug yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
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: -------
Feb 12 2011








d-bugmail puremagic.com