www.digitalmars.com         C & C++   DMDScript  

D.gnu - internal compiler error: in convert_move, at expr.c:339

The following bug happens with GDC 0.17.
It has already been reported by me on digitalmars.D.bugs/5690 - has it been
added to DStress?

Best,
Tiago

<snip>
template _func1( T : T[] ){
  void _func1( T[] data ) {
    data[0] /= cast(cdouble)data.length;
  }
}
//alias _func1!(float[])   func1;  // does not happen with GDC!!! but happens
with DMD
alias _func1!(int[])   func1;
//alias _func1!(uint[])  func1;
//alias _func1!(long[])   func1;
//alias _func1!(ulong[])   func1;
//alias _func1!(char[])   func1;
//alias _func1!(byte[])   func1;




/*****************************************************/

/*
template _func2( T : T[] ){
  void _func2( T[] data ) {
    data[0] /= cast(cfloat)data.length;
  }
}

alias _func2!(int[])   func2;
//alias _func2!(uint[])  func2;
//alias _func2!(long[])   func2;
//alias _func2!(ulong[])   func2;
//alias _func2!(char[])   func2;
//alias _func2!(byte[])   func2;
*/
<snip>

-- 
Tiago Gasiba (M.Sc.) - http://www.gasiba.de
Everything should be made as simple as possible, but not simpler.
Dec 02 2005