digitalmars.D.bugs - [Bug 54] New: Compiler segfault on zero length static array
- d-bugmail puremagic.com (17/17) Mar 16 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=54
- d-bugmail puremagic.com (6/6) Mar 16 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=54
- Thomas Kuehne (14/17) Mar 18 2006 -----BEGIN PGP SIGNED MESSAGE-----
- Thomas Kuehne (22/24) Mar 18 2006 -----BEGIN PGP SIGNED MESSAGE-----
- d-bugmail puremagic.com (9/9) May 25 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=54
http://d.puremagic.com/bugzilla/show_bug.cgi?id=54
Summary: Compiler segfault on zero length static array
Product: D
Version: 0.149
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: DMD
AssignedTo: bugzilla digitalmars.com
ReportedBy: oskar.linde gmail.com
template declare(X) { X declare; }
typeof(declare!(int[0]).ptr[0]) y;
Segfaults DMD.
--
Mar 16 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=54
Here's another version:
template declare(X) { X declare; }
typeof(declare!(typeof(""))[0..$]) y;
--
Mar 16 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail puremagic.com schrieb am 2006-03-16:
Here's another version:
template declare(X) { X declare; }
typeof(declare!(typeof(""))[0..$]) y;
Added to DStress as
http://dstress.kuehne.cn/run/t/typeof_08_A.d
http://dstress.kuehne.cn/run/t/typeof_08_B.d
http://dstress.kuehne.cn/run/t/typeof_08_C.d
http://dstress.kuehne.cn/run/t/typeof_08_D.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFEHQIl3w+/yD4P9tIRAisSAKChxbZhfqWo2QCVmdqCoZbeHYLTnACfUPGy
mc8ksvxf0oHas1xlWegDBjk=
=+92v
-----END PGP SIGNATURE-----
Mar 18 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail puremagic.com schrieb am 2006-03-16:
template declare(X) { X declare; }
typeof(declare!(int[0]).ptr[0]) y;
http://www.digitalmars.com/d/declaration.html#type
Thus Oscar is right in classifying this as "ice-on-valid-code".
Added to DStress as
http://dstress.kuehne.cn/run/t/typeof_09_A.d
http://dstress.kuehne.cn/run/t/typeof_09_B.d
http://dstress.kuehne.cn/run/t/typeof_09_C.d
http://dstress.kuehne.cn/run/t/typeof_09_D.d
http://dstress.kuehne.cn/run/t/typeof_09_E.d
http://dstress.kuehne.cn/run/t/typeof_09_F.d
http://dstress.kuehne.cn/run/t/typeof_09_G.d
http://dstress.kuehne.cn/run/t/typeof_09_H.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFEHQhW3w+/yD4P9tIRAutWAJsHWipS14VRiooPuCaxzxZ//hTGXACgkYPk
zF3pUbn9gB3eMil9F+fw0Lo=
=k0Tx
-----END PGP SIGNATURE-----
Mar 18 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=54
bugzilla digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Fixed 0.158
--
May 25 2006









Thomas Kuehne <thomas-dloop kuehne.cn> 