[Issue 854] New: TypeTuple in anonymous delegate causes ice in glue.c
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 18 01:24:12 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=854
Summary: TypeTuple in anonymous delegate causes ice in glue.c
Product: D
Version: 1.00
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: daniel.keep+d.puremagic.com at gmail.com
If you try to create an anonymous delegate with a TypeTuple in the argument
list, you get an ICE.
Steps to reproduce:
1) Attempt to compile code below with "dmd glue_gd_ice.d".
Actual result:
The compiler crashes with the following message:
"Assertion failure: '0' on line 700 in file 'glue.c'"
Expected result:
The code to compile, or at least display a meaningful error message.
Compiler: Digital Mars D Compiler v1.0, WinXP SP2.
Code to reproduce: (glue_dg_ice.d)
import std.typetuple;
void main()
{
auto x = (uint a, uint b) { return a*b; };
auto y = (TypeTuple!(uint,uint) ab) { return ab[0] * ab[1]; };
}
--
More information about the Digitalmars-d-bugs
mailing list