[Issue 2100] New: Assertion failure: '0' on line 4842 in file 'expression.c'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 12 03:09:40 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2100

           Summary: Assertion failure: '0' on line 4842 in file
                    'expression.c'
           Product: D
           Version: 1.029
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: samukha at voliacable.com


I have not been able to find a reasonable workaround yet, so marking it as a
blocker. May be related to or duplicate of other expression.c failures.  
----
template Tuple(A...)
{
    alias A Tuple;
}

int x;
alias Tuple!(x) Foos;

template Filter()
{
    alias Tuple!(Foos[0]) FilteredFoos;
}

static assert(Filter!().FilteredFoos.length == 1);

void main()
{    
}
----
Assertion failure: '0' on line 4842 in file 'expression.c'

abnormal program termination


-- 



More information about the Digitalmars-d-bugs mailing list