Bug 1138 – ICE when tuple template gets indexed

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-13T08:24:00Z
Last change time
2014-02-16T15:21:41Z
Keywords
ice-on-invalid-code, ice-on-valid-code
Assigned to
bugzilla
Creator
manuelk89

Comments

Comment #0 by manuelk89 — 2007-04-13T08:24:55Z
// 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.
Comment #1 by thomas-dloop — 2007-04-23T12:56:15Z
Comment #2 by clugdbug — 2009-04-18T17:38:06Z
Works for me on Windows 2.028 and 1.042. Also shown to work in the LDC dstress results for 1.043.