Compilation failure

Lemonfiend no at email.here
Sun Jul 8 14:47:00 PDT 2012


Hi,

I seem to have run into a strange error..
When I put tmp1 outside the main loop, it compiles fine and gives 
the expected output.
When tmp1 is put inside the main loop, the compiler seems to get 
stuck in a loop?

I've tested it on: http://dlang.org/index.html

See error on bottom (lol)

--------------------
#!/usr/bin/rdmd

import std.stdio;

//immutable int[] tmp1 = [1, 2]; // compiles

void main()
{	
	immutable int[] tmp1 = [1, 2]; // does not compile
	
	int[tmp1.length] tmp2 = tmp1;
	
	tmp2[] += 1;
	
	writeln(tmp1);
	writeln(tmp2);
}

--------------------

Compilation failure:
834.d(9): Error: Integer constant expression expected instead of 
(tmp1 = [1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length/usr/local/include/dmd2/std/format.d(419): Error: 
template instance std.format.getNthInt!(int[(tmp1 = 
[1,2]).length]) error 
instantiating/usr/local/include/dmd2/std/stdio.d(687): 
instantiated from here: 
formattedWrite!(LockingTextWriter,char,int[(tmp1 = 
[1,2]).length])/usr/local/include/dmd2/std/stdio.d(1574): 
instantiated from here: write!(int[(tmp1 = 
[1,2]).length],char)834.d(16): instantiated from here: 
writeln!(int[(tmp1 = [1,2]).length])834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length834.d(9): Error: Integer constant expression 
expected instead of (tmp1 = [1,2]).length834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length/usr/local/include/dmd2/std/format.d(2593): Error: 
template std.format.formatValue does not match any function 
template declaration/usr/local/include/dmd2/std/format.d(2593): 
Error: template std.format.formatValue cannot deduce template 
function from argument types !()(LockingTextWriter,int[(tmp1 = 
[1,2]).length],FormatSpec!(char))/usr/local/include/dmd2/std/format.d(471): 
Error: template instance 
std.format.formatNth!(LockingTextWriter,char,int[(tmp1 = 
[1,2]).length]) error 
instantiating/usr/local/include/dmd2/std/stdio.d(687): 
instantiated from here: 
formattedWrite!(LockingTextWriter,char,int[(tmp1 = 
[1,2]).length])/usr/local/include/dmd2/std/stdio.d(1574): 
instantiated from here: write!(int[(tmp1 = 
[1,2]).length],char)834.d(16): instantiated from here: 
writeln!(int[(tmp1 = [1,2]).length])834.d(9): Error: Integer 
constant expression expected instead of (tmp1 = 
[1,2]).length/usr/local/include/dmd2/std/stdio.d(687): Error: 
template instance 
std.format.formattedWrite!(LockingTextWriter,char,int[(tmp1 = 
[1,2]).length]) error 
instantiating/usr/local/include/dmd2/std/stdio.d(1574): 
instantiated from here: write!(int[(tmp1 = 
[1,2]).length],char)834.d(16): instantiated from here: 
writeln!(int[(tmp1 = 
[1,2]).length])/usr/local/include/dmd2/std/stdio.d(1574): Error: 
template instance std.stdio.File.write!(int[(tmp1 = 
[1,2]).length],char) error instantiating834.d(16): instantiated 
from here: writeln!(int[(tmp1 = [1,2]).length])834.d(16): Error: 
template instance std.stdio.writeln!(int[(tmp1 = [1,2]).length]) 
error instantiating
--------------------



More information about the Digitalmars-d-learn mailing list