[Issue 3014] New: ICE(template.c) instantiating template with tuple

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 20 07:07:51 PDT 2009


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: bugzilla at digitalmars.com
        ReportedBy: rsinfu at 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: -------


More information about the Digitalmars-d-bugs mailing list