compiler: check repeated const expressions in new scope