mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Merged DMD commit f0cfcb5006ca33c64e50addb14711a7034f3223c:
bugzilla 4623 Non-integer type allowed as static array size
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user