Compiler Error C2702
__except
may not appear in termination block
An exception handler (__try
/__except
) cannot be nested inside a __finally
block.
The following sample generates C2702:
// C2702.cpp
// processor: x86 IPF
int Counter;
int main() {
__try {}
__finally {
__try {} // C2702
__except( Counter ) {} // C2702
}
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for