www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Missing filename and line number: index out of bounds in array initialiser

reply Stewart Gordon <smjg_1998 yahoo.com> writes:
Using DMD 0.128, Windows 98SE.

----------
int[3] qwert = [ 13, 42, 105, 666 ];
----------
Error: too many initializers 4 for array[3]
----------

The same happens if an index has been specified in the initialiser.

Stewart.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:- a->--- UB  P+ L E  W++  N+++ o K- w++  O? M V? PS- PE- Y? 
PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.
Jul 18 2005
parent reply =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.THISISSPAM.cn> writes:
Stewart Gordon wrote:
 Using DMD 0.128, Windows 98SE.

 ----------
 int[3] qwert = [ 13, 42, 105, 666 ];
 ----------
 Error: too many initializers 4 for array[3]
 ----------

 The same happens if an index has been specified in the initialiser.
Added to DStress as http://dstress.kuehne.cn/nocompile/a/array_initialization_17_A.d http://dstress.kuehne.cn/nocompile/a/array_initialization_17_B.d Thomas
Jul 18 2005
parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
Thomas Kühne wrote:
 Stewart Gordon wrote:
 Using DMD 0.128, Windows 98SE.

 ----------
 int[3] qwert = [ 13, 42, 105, 666 ];
 ----------
 Error: too many initializers 4 for array[3]
 ----------

 The same happens if an index has been specified in the initialiser.
Added to DStress as http://dstress.kuehne.cn/nocompile/a/array_initialization_17_A.d http://dstress.kuehne.cn/nocompile/a/array_initialization_17_B.d
I've just noticed - these aren't on the results page, but they duplicate existing filenames. Stewart. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M d- s:- a->--- UB P+ L E W++ N+++ o K- w++ O? M V? PS- PE- Y? PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y ------END GEEK CODE BLOCK------ My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
Jul 22 2005
parent =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.THISISSPAM.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stewart Gordon schrieb:
 Thomas Kühne wrote:
 
 Stewart Gordon wrote:

 Using DMD 0.128, Windows 98SE.

 ----------
 int[3] qwert = [ 13, 42, 105, 666 ];
 ----------
 Error: too many initializers 4 for array[3]
 ----------

 The same happens if an index has been specified in the initialiser.
Added to DStress as http://dstress.kuehne.cn/nocompile/a/array_initialization_17_A.d http://dstress.kuehne.cn/nocompile/a/array_initialization_17_B.d
I've just noticed - these aren't on the results page, but they duplicate existing filenames.
Moved to http://dstress.kuehne.cn/nocompile/a/array_initialization_18_A.d http://dstress.kuehne.cn/nocompile/a/array_initialization_18_B.d to eliminate dublicate names. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (MingW32) iD8DBQFC4Qiu3w+/yD4P9tIRAtMOAJ4hxlsHkXhYLS+pzDJP9eT60CBydwCeJoXm oXhPzxYZ/6wwm/B6uC9+xyY= =cOwj -----END PGP SIGNATURE-----
Jul 22 2005