Thread overview
[Issue 1138] New: ICE when tuple template gets indexed
Apr 13, 2007
d-bugmail
Apr 23, 2007
d-bugmail
Apr 18, 2009
d-bugmail
April 13, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1138

           Summary: ICE when tuple template gets indexed
           Product: D
           Version: 1.012
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-invalid-code, ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: manuelk89@gmx.net


// file main.d

template Tuple(E...)
{
        alias E items;
}

alias Tuple!("foo").items tup; // that works fine

void main()
{
        // ICE is caused by this line.
        writefln(Tuple!("foo").items); // ICE for value parameters, but not for
type parameters.
}

-----------------------------------
tested with dmd 1.011 and 1.012:

$ dmd main
dmd: expression.c:4548: virtual Expression* DotIdExp::semantic(Scope*):
Assertion `0' failed.


-- 

April 23, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1138





------- Comment #1 from thomas-dloop@kuehne.cn  2007-04-23 12:56 -------
Added to DStress as http://dstress.kuehne.cn/run/t/tuple_22_A.d http://dstress.kuehne.cn/run/t/tuple_22_B.d


-- 

April 18, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1138


clugdbug@yahoo.com.au changed:

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




------- Comment #2 from clugdbug@yahoo.com.au  2009-04-18 17:38 -------
Works for me on Windows 2.028 and 1.042. Also shown to work in the LDC dstress results for 1.043.


--