[Issue 2687] ICE in statement.c: ParameterTypeTuple of aliased function and friends

2009-05-08 Thread d-bugmail
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


-- 



[Issue 2687] ICE in statement.c: ParameterTypeTuple of aliased function and friends

2009-02-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2687





--- Comment #2 from daniel.keep+d.puremagic@gmail.com  2009-02-24 08:40 
---
Created an attachment (id=292)
 -- (http://d.puremagic.com/issues/attachment.cgi?id=292action=view)
fnalias_reflect.d - template madness


--