fix Issue 9386 - struct destructor called erroneously
Merge pull request #1878 from donc/ice9908ctfeblockinit

Fix bug 9908 CTFE ICE block initialized global static array
Fix typeMerge for scalar op vector types.
Merge pull request #1879 from ibuclaw/scalar_op_vector

Fix typeMerge for scalar op vector types.
Merge pull request #1875 from 9rnsr/fix9386

Issue 9386 - struct destructor called erroneously
CTFE: allow const casts of struct literals

This was permitted in const-folding, but not in CTFE until now.
Allow interpret(Error) as a no-op

Allowing ctfeInterpret to accept ErrorExp as a no-op causes less
clutter in the calling code. Probably, this should be combined into
a single semantic()/resolveProperties/ctfeInterpret() call.
Do all interpreting inside CTFE

instead of in the optimizer
CTFE compile: Count total variable declarations

First step towards CTFE compilation. Walk over all
expressions in the function, searching for VarDeclarations.
Fix error message wording in test suite
Sanity check: Add check for errorexpressions that have slipped through
CTFE: Generate error for shr/ushr/shl out of range
If an error occurs in an ExpInitializer, change it to an error.
Don't save local variables in the global constants list

Even if they are immutable global variables (eg, bug 8400)
Improve error message for static assert

by running optimize first.
Allow creation but not reading of unions in CTFE

It's currently possible to create unions in global scope but not in CTFE.
We can't support reading or writing members, but creation is OK.
Disable horrific cast in deprecated code

This cast is disgusting, and shouldn't compile.
Disallow void enums. Fix enum.max for errors

If the base type isn't valid, don't calculate enum.max