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

           Summary: ICE(template.c) instantiating template with tuple
           Product: D
           Version: 2.030
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: ice-on-valid-code, patch
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: rsi...@gmail.com


Created an attachment (id=376)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=376)
Fix the problem (dmd 2.030)

TemplateInstance::semanticTiargs() does not expand tuples which are passed as
expressions (e.g. TypeExp). As a result, this valid code causes an ICE:
--------------------
import std.typetuple;
template List(lst...) { alias lst list; }
alias TypeTuple!(List!(void)) A;
alias TypeTuple!(A[0].list) B;
--------------------
ta = 39, (int)
assert template.c(4088) global.errors
--------------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to