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: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2011-02-16 16:20:11 PST --- 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: -------