[REG2.061] Issue 10946 - Integer constant expression expected instead of...
Fix issue 10949 CTFE ICE after indexing error

When an error occurs during optimize(), propagate the ErrorExp.
Merge pull request #2512 from 9rnsr/fix10946

[REG2.061] Issue 10946 - Integer constant expression expected instead of...
Merge pull request #2513 from donc/ice_arraybounds

Regression 10949: CTFE ICE after indexing error
fixes error propagation in optimize.c
Merge pull request #2514 from WalterBright/fix-error-prop

fixes error propagation in optimize.c