www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Compiler crash related to arrays

reply Deewiant <deewiant.doesnotlike.spam gmail.com> writes:
DMD v 0.128, Windows XP SP2.

Caused by either modifying the length of a static array of undefined size:

--
void main(char[][] args) {
	int[UNDEFINED] foo;

	foo.length = 1;
}
--

or by modifying the length of an associative array:

--
void main(char[][] args) {
	int[int] foo;

	foo.length = 1;
}
--

Both give a couple of expected errors followed by a compiler crash, in
the form of Windows reporting that "dmd.exe has encountered a problem", etc.

BTW, about DStress: is there an error in "bug cod2 4211 U"? Shouldn't
the assert make sure that the result is 6, not 3?
Aug 04 2005
parent =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.THISISSPAM.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Deewiant schrieb:

 DMD v 0.128, Windows XP SP2.

 Caused by either modifying the length of a static array of undefined size:

 --
 void main(char[][] args) {
 	int[UNDEFINED] foo;

 	foo.length = 1;
 }
 --

 or by modifying the length of an associative array:

 --
 void main(char[][] args) {
 	int[int] foo;

 	foo.length = 1;
 }
 --

 Both give a couple of expected errors followed by a compiler crash, in
 the form of Windows reporting that "dmd.exe has encountered a problem", etc.

That's a known lvalue bug. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFC9LlY3w+/yD4P9tIRAq0wAJ99uYYiEcdhXSRY838sG3wrC6qAPwCdFXax f0a59Bu74bIApxD3GIXNrUE= =T9Sd -----END PGP SIGNATURE-----
Aug 06 2005