[dmd-internals] [D-Programming-Language/dmd] 9982f5: fix Issue 14395 - Typesafe variadic function call ...
GitHub via dmd-internals
dmd-internals at puremagic.com
Sat Apr 4 13:50:02 PDT 2015
Branch: refs/heads/master
Home: https://github.com/D-Programming-Language/dmd
Commit: 9982f52fee882bd78143ce76e8547ef59c8e8454
https://github.com/D-Programming-Language/dmd/commit/9982f52fee882bd78143ce76e8547ef59c8e8454
Author: k-hara <k.hara.pg at gmail.com>
Date: 2015-04-04 (Sat, 04 Apr 2015)
Changed paths:
M src/expression.c
M test/runnable/variadic.d
Log Message:
-----------
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.
Commit: e926becf170376bdefccb5fb1812c0214c7db324
https://github.com/D-Programming-Language/dmd/commit/e926becf170376bdefccb5fb1812c0214c7db324
Author: Walter Bright <walter at walterbright.com>
Date: 2015-04-04 (Sat, 04 Apr 2015)
Changed paths:
M src/expression.c
M test/runnable/variadic.d
Log Message:
-----------
Merge pull request #4551 from 9rnsr/fix14395
[REG2.067] Issue 14395 - Typesafe variadic function call collapsed if being used for default value
Compare: https://github.com/D-Programming-Language/dmd/compare/b99758d01518...e926becf1703
More information about the dmd-internals
mailing list