Thread overview
[Issue 3014] New: ICE(template.c) instantiating template with tuple
May 20, 2009
rsinfu@gmail.com
May 20, 2009
Don
May 21, 2009
Don
Jul 09, 2009
Walter Bright
May 20, 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@digitalmars.com
        ReportedBy: rsinfu@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: -------
May 20, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3014


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug@yahoo.com.au
            Version|2.030                       |1.044




--- Comment #1 from Don <clugdbug@yahoo.com.au>  2009-05-20 09:36:45 PDT ---
Also ICEs in the same place in DMD1.043.
BTW - Great work!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 21, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3014





--- Comment #2 from Don <clugdbug@yahoo.com.au>  2009-05-20 19:45:52 PDT ---
This patch also fixes bug 884. It doesn't fix 2884, though, which ICEs at the same place.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 09, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3014


Walter Bright <bugzilla@digitalmars.com> changed:

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




--- Comment #3 from Walter Bright <bugzilla@digitalmars.com>  2009-07-09 02:50:19 PDT ---
Fixed dmd 1.046 and 2.031

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