Mercurial > projects > ddmd
diff dmd/TypeDArray.d @ 23:460959608115
Branch merge.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Mon, 12 Apr 2010 17:00:08 +0100 |
parents | 832f71e6f96c 01cadcfa4842 |
children | 2e2a5c3f943a |
line wrap: on
line diff
--- a/dmd/TypeDArray.d Mon Apr 12 16:29:33 2010 +0400 +++ b/dmd/TypeDArray.d Mon Apr 12 17:00:08 2010 +0100 @@ -35,6 +35,7 @@ import core.stdc.stdlib; import core.stdc.stdio; +version (Bug4054) import core.memory; // Dynamic array, no dimension class TypeDArray : TypeArray @@ -300,6 +301,9 @@ char *id; assert(next.deco); + version (Bug4054) + id = cast(char*) GC.malloc(7 + next.deco.length + 1); + else id = cast(char*) alloca(7 + next.deco.length + 1); sprintf(id, "_Array_%.*s", next.deco); s = symbol_calloc(id); @@ -337,4 +341,4 @@ ctype = t; return t; } -} \ No newline at end of file +}