Merge pull request #2527 from donc/badpointer10858ctfe

10858 CTFE wrong-code for array of pointers
revert pull 1325
Merge pull request #2547 from WalterBright/revert-pull-1325

revert pull 1325
Partial fix for Issue 10666 - Appender does not work with a RefCounted type

Essentially this is neigher dmd nor phobos regression, but recent Appender change in 2.064a should not raise "cannot build closure" error.
Fix bug 9364 [ICE] Error: CTFE internal error painting S*

SymOffExp(v) needs to create a CTFE pointer &v (instead of doing
an invalid type painting operation).
Fix bug 10989 [CTFE] Uncaught exception messages are not pretty printed

Convert it to a StringExp before printing.
Fix bug 10995 CTFE failure for void initialized members

Fix the duplicate error message, and don't scrub twice -- only scrub
when CTFE is actually finished.
Merge pull request #2528 from yebblies/issue10682

Fix Issue 10682 - [ICE](cgcod.c line 1561) with ^^ operator
fix Issue 10441 - Static libraries too big
Merge pull request #2546 from donc/pointerice9364ctfe

9364 CTFE internal error painting struct
Merge pull request #2534 from AndrejMitrovic/Fix10990_2

Issue 10990 - getUnitTest trait does not work with a module import.
Merge pull request #2550 from WalterBright/fix10441

fix Issue 10441 - Static libraries too big
Merge pull request #2538 from lionello/bug1878

foreach range uses same logic as ?: for type deduction
fix Issue 9948 - -deps dependency printing incorrect for templates

This fix is based on the just merged pull request:

 https://github.com/D-Programming-Language/dmd/pull/2550

by Walter Bright. It made this fix trivial (at least the test case in the bug report is working correctly now).
Added a simple test case for 9948.
Adopted test case to D coding styles.
Merge pull request #2551 from donc/void10995ctfe

10995 CTFE failure for void initialized members
Hopefully fixed auto test issues.
Fixes Issue 10984 - Better diagnostic for static function when attempting to access a symbol requiring frame access.
refactor to use semanticRun in enum