Thread overview | |||||
---|---|---|---|---|---|
|
February 17, 2011 [Issue 5601] New: A template forward reference error | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from bearophile_hugs@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: ------- |
April 24, 2011 [Issue 5601] A template forward reference error | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | 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 --- Comment #1 from kennytm@gmail.com 2011-04-24 00:12:34 PDT --- 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: ------- |
April 24, 2011 [Issue 5601] A template forward reference error | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5601 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cbkbbejeap@mailinator.com --- Comment #2 from kennytm@gmail.com 2011-04-24 00:14:44 PDT --- *** 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: ------- |
Copyright © 1999-2021 by the D Language Foundation