Mercurial > projects > ldc
diff dmd2/constfold.c @ 1577:e4f7b5d9c68a
DMD 2.032 Merge.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Tue, 08 Sep 2009 10:07:56 +0100 |
parents | 54b3c1394d62 |
children |
line wrap: on
line diff
--- a/dmd2/constfold.c Tue Aug 25 21:35:43 2009 +0200 +++ b/dmd2/constfold.c Tue Sep 08 10:07:56 2009 +0100 @@ -65,6 +65,11 @@ return 1; } +int NullExp::isConst() +{ + return 0; +} + int SymOffExp::isConst() { return 2; @@ -1084,6 +1089,8 @@ Type *tb = to->toBasetype(); Type *typeb = type->toBasetype(); + /* Allow casting from one string type to another + */ if (e1->op == TOKstring) { if (tb->ty == Tarray && typeb->ty == Tarray &&