Mercurial > projects > ldc
diff dmd/arrayop.c @ 1279:04c36605feb9
Fixed array operation codegen when used from imported templates. All array operations are now emitted with template linkage. Fixed #270 .
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Wed, 29 Apr 2009 18:59:39 +0200 |
parents | b30fe7e1dbb9 |
children | afecdb8ee962 |
line wrap: on
line diff
--- a/dmd/arrayop.c Wed Apr 29 18:39:59 2009 +0200 +++ b/dmd/arrayop.c Wed Apr 29 18:59:39 2009 +0200 @@ -275,7 +275,7 @@ //printf("ftype: %s\n", ftype->toChars()); fd = new FuncDeclaration(0, 0, Lexer::idPool(name), STCundefined, ftype); fd->fbody = fbody; - fd->protection = PROTprotected; + fd->protection = PROTpublic; fd->linkage = LINKd; // special attention for array ops