No crash for dmd 1.021 and 2.004. The code is invalid anyway, and an error message is printed.
Comment #2 by shro8822 — 2007-10-03T09:45:13Z
this would be really cool if you could do it:
template Using(alias fn)
{
static if(fn args == function)
{
template Replace(I...)
{
alias RemoveIndex!(I).From(args) dropedArgs;
template With(newArgs v) // derived arg list in template == typesafe
{
...
}
}
else static assert(false)
}
Comment #3 by bugzilla — 2008-06-28T01:31:36Z
I don't understand the suggested feature or what it has to do with the bug report. The bug itself appears to be working fine.