digitalmars.D.bugs - [Bug 54] New: Compiler segfault on zero length static array
- d-bugmail puremagic.com Mar 16 2006
- d-bugmail puremagic.com Mar 16 2006
- Thomas Kuehne <thomas-dloop kuehne.cn> Mar 18 2006
- Thomas Kuehne <thomas-dloop kuehne.cn> Mar 18 2006
- d-bugmail puremagic.com May 25 2006
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 ------- Comment #1 from oskar.linde gmail.com 2006-03-16 08:32 ------- 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 # typeof ( Expression ) # Expression is not evaluated, just the type of it is generated 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 ------- Comment #4 from bugzilla digitalmars.com 2006-05-25 04:17 ------- Fixed 0.158 --
May 25 2006









Thomas Kuehne <thomas-dloop kuehne.cn> 