Compiles and rusn just fine:
C:\Users\Bart\LazarusProjecten\ConsoleProjecten>type test.pas
program test;
{$H+}
var
somearray : array [1..1000000, 1..1000] of shortstring;
s : shortstring;
begin
s := 'foo';
somearray[1,1]:=s; // here is the problem as topic describes
writeln(somearray[1,1]);
end.
C:\Users\Bart\LazarusProjecten\ConsoleProjecten>fpc test.pas
Free Pascal Compiler version 2.6.0 [2011/12/25] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling test.pas
Linking test.exe
13 lines compiled, 0.1 sec , 26000 bytes code, 1628 bytes data
C:\Users\Bart\LazarusProjecten\ConsoleProjecten>test
foo
Bart