digitalmars.D.bugs - [Issue 5601] New: A template forward reference error
- d-bugmail puremagic.com (31/31) Feb 16 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5601
- d-bugmail puremagic.com (15/15) Apr 24 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5601
- d-bugmail puremagic.com (10/10) Apr 24 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5601
http://d.puremagic.com/issues/show_bug.cgi?id=5601 Summary: A template forward reference error Product: D Version: D2 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 A case of forward template forward reference (I am not sure this is actually a bug): import std.traits; auto foo() { alias ReturnType!foo T; return 0; } void main() {} DMD 2.052 shows (it's not a regression): ...\dmd\src\phobos\std\traits.d(122): Error: template instance forward reference of foo ...\dmd\src\phobos\std\traits.d(105): Error: forward reference to foo ...\dmd\src\phobos\std\traits.d(122): Error: template instance std.traits.staticLength!(foo) error instantiating -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 16 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5601 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kennytm gmail.com Platform|x86 |All Version|D2 |D1 & D2 Blocks| |340 OS/Version|Windows |All Also happens in D1, as described in issue 2885. (I'm closing 2885 as the report there isn't quite to-the-point.) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 24 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5601 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cbkbbejeap mailinator.com *** Issue 2885 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 24 2011