I am getting the error "SFE-874 Unexpected CPP_LANG_SWITCH" with version 7.1.1 of Spectre. I cannot find documentation on this error anywhere. Also, this does not seem to be related to a "simulator lang = spectre" call. Is anybody familiar with this error message?
I have only found one report of this message, and that was from an internal Cadence CCR. It didn't give much detail, and it was from 3 years ago (it was not the primary problem discussed in that CCR).
The best thing is to contact Cadence customer support with the testcase, and then we can investigate. I don't think it's expected behaviour...