http://d.puremagic.com/issues/show_bug.cgi?id=2687





------- Comment #3 from clugd...@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


-- 

Reply via email to