[Issue 289] New: Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 15 17:13:23 PDT 2006
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 at digitalmars.com
ReportedBy: brunodomedeiros+bugz at 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
}
--
More information about the Digitalmars-d-bugs
mailing list