www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1138] New: ICE when tuple template gets indexed

reply d-bugmail puremagic.com writes:
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.


-- 
Apr 13 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1138






Added to DStress as
http://dstress.kuehne.cn/run/t/tuple_22_A.d
http://dstress.kuehne.cn/run/t/tuple_22_B.d


-- 
Apr 23 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1138


clugdbug yahoo.com.au changed:

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





Works for me on Windows 2.028 and 1.042. Also shown to work in the LDC dstress
results for 1.043.


-- 
Apr 18 2009