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

--- Comment #0 from 2011-02-16 16:20:11 PST ---
A case of forward template forward reference (I am not sure this is actually a

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:
------- You are receiving this mail because: -------

Reply via email to