[Issue 14395] [REG2.067] Typesafe variadic function call collapsed if being used for default value

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Apr 4 13:50:04 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14395

--- Comment #4 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/9982f52fee882bd78143ce76e8547ef59c8e8454
fix Issue 14395 - Typesafe variadic function call collapsed if being used for
default value

Out of function body `__arrayArg` was not initialized by the array literal,
because `VarDeclaraton::semantic()` does not wrap the initializer expression
with ConstructExp when `sc->func == NULL`.

To fix the issue, remove use of temporary variable for typesafe variadic
argument.

https://github.com/D-Programming-Language/dmd/commit/e926becf170376bdefccb5fb1812c0214c7db324
Merge pull request #4551 from 9rnsr/fix14395

[REG2.067] Issue 14395 - Typesafe variadic function call collapsed if being
used for default value

--


More information about the Digitalmars-d-bugs mailing list