[Issue 9818] Constant folding for static array does not work with initializing by element

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 30 16:20:32 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9818



--- Comment #2 from github-bugzilla at puremagic.com 2013-03-30 16:20:28 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/818fbf70501d7d6bc9cb8ed902f1b5b779f5bd10
fix Issue 9818 - Constant folding for static array does not work with
initializing by element

Refactoring code for initializer semantic.

- Handle implicit constructor call in ExpInitializer::semantic
- Add target type parameter in Initializer::toExpression.
  For `T[n] sa = e;`, its initializer translation to [e1, e2, ..., en] is
delayed until it's really needed.

https://github.com/D-Programming-Language/dmd/commit/8d482641c862de6285a6c20aab7127370912fa7a
Merge pull request #1801 from 9rnsr/fix9818

Issue 9818 - Constant folding for static array does not work with initializing
by element

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list