fix Issue 11925 - ICE in CompoundStatement::semantic
Merge pull request #3099 from 9rnsr/fix11925

[REG2.065a] Issue 11925 - ICE in CompoundStatement::semantic