Thread overview | |||||
---|---|---|---|---|---|
|
August 16, 2006 [Issue 289] New: Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=289 Summary: Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types Product: D Version: 0.164 Platform: PC OS/Version: Windows Status: NEW Keywords: accepts-invalid, ice-on-invalid-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: brunodomedeiros+bugz@gmail.com BugsThisDependsOn: 270 Compiler allows the declaration of dynamic arrays of typedefs of "immediate"-function types. And crashes when trying to change the length of those. Code: ----- typedef int ft(int); ft[] x; // is allowed void test() { x.length = 2; // crashes DMD } -- |
September 19, 2006 [Issue 289] Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=289 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2006-09-19 15:25 ------- Fixed in DMC 0.167. -- |
October 06, 2006 Re: [Issue 289] New: Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | d-bugmail@puremagic.com schrieb am 2006-08-16: > http://d.puremagic.com/issues/show_bug.cgi?id=289 > Compiler allows the declaration of dynamic arrays of typedefs of "immediate"-function types. And crashes when trying to change the length of those. Code: > ----- > > typedef int ft(int); > > ft[] x; // is allowed > > void test() { > x.length = 2; // crashes DMD > } Added to DStress as http://dstress.kuehne.cn/nocompile/t/typedef_21_A.d http://dstress.kuehne.cn/nocompile/t/typedef_21_B.d Thomas |
Copyright © 1999-2021 by the D Language Foundation