www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1260] New: Another tuple bug

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1260

           Summary: Another tuple bug
           Product: D
           Version: 1.015
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: samukha voliacable.com


template Foo(T, Args...)
{
    void bar(Args args, T t)
    {
    }
}

void main()
{
    alias Foo!(int) aFoo;
}

Error: error: forward reference of T

Compiles with one more type added to Foo's parameters:
alias Foo!(int, int) aFoo; // ok


-- 
Jun 06 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1260


onlystupidspamhere yahoo.se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed in 1.017.


-- 
Jun 26 2007