Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
March 16, 2006 [Bug 54] New: Compiler segfault on zero length static array | ||||
---|---|---|---|---|
| ||||
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. -- |
March 16, 2006 [Bug 54] Compiler segfault on zero length static array | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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; -- |
March 19, 2006 Re: [Bug 54] Compiler segfault on zero length static array | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | 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 |
March 19, 2006 Re: [Bug 54] New: Compiler segfault on zero length static array | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | 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 |
May 25, 2006 [Bug 54] Compiler segfault on zero length static array | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 -- |
Copyright © 1999-2021 by the D Language Foundation