Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Compiler Error C2705

'label' : illegal jump into 'exception handler block' scope

Execution jumps to a label within a try/catch, __try/__except, __try/__finally block. For more information, see Exception Handling.

Example

// C2705.cpp
int main()
{
goto trouble;
   __try {
   trouble: ;   // C2705
   }
   __finally {}
}
Show:
© 2015 Microsoft