--- Comment #1 from Kenji Hara <> 2012-03-24 09:52:23 PDT ---
Compiler can calculate the length for s[0 .. 4] in compile time, because both
lower bound and upper bound are constant expressions. So converting it to
static array type is possible.

But, currently, the slice of an array expression is *always* typed as dynamic
array type.
Therefore it is a constant-folding enhancement, not a bug.

Bug 7665 will also settle down to the same mechanism.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to