From 2bc5cd5f1bafe1cfcf27967e82daa6921a2246ee Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Fri, 22 Apr 2011 15:09:42 +0200 Subject: [PATCH] Merged DMD commit f0cfcb5006ca33c64e50addb14711a7034f3223c: bugzilla 4623 Non-integer type allowed as static array size --- dmd/mtype.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmd/mtype.c b/dmd/mtype.c index ca10d19e..0a33579c 100644 --- a/dmd/mtype.c +++ b/dmd/mtype.c @@ -4,6 +4,7 @@ // All Rights Reserved // written by Walter Bright // http://www.digitalmars.com +// http://www.dsource.org/projects/dmd/browser/branches/dmd-1.x/src/mtype.c // License for redistribution is by either the Artistic License // in artistic.txt, or the GNU General Public License in gnu.txt. // See the included readme.txt for details. @@ -1984,7 +1985,7 @@ Type *TypeSArray::semantic(Loc loc, Scope *sc) return this; } dinteger_t d1 = dim->toInteger(); - dim = dim->castTo(sc, tsize_t); + dim = dim->implicitCastTo(sc, tsize_t); dim = dim->optimize(WANTvalue); dinteger_t d2 = dim->toInteger();