[Issue 2687] ICE in statement.c: ParameterTypeTuple of aliased function and friends
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 8 01:14:56 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2687
------- Comment #3 from clugdbug at yahoo.com.au 2009-05-08 03:15 -------
Here's a much simpler test case which fails only on DMD1:
--
template Tuple(T...){
alias T Tuple;
}
void foo()(){
undefined x;
foreach( i ; Tuple!(2) ){
static assert( true);
}
}
void main(){
foo!()();
}
--
Statement::blockExit(009F1CD0)
static assert(true);
Assertion failure: '0' on line 136 in file 'statement.c'
abnormal program termination
--
This clearly shows that the problem is with (static) foreach.
I'm not sure that the original bug is actually an ice-on-valid-code. It
generates an error on D2.029
--
More information about the Digitalmars-d-bugs
mailing list