Compiler Error C2705
'label' : illegal jump into 'exception handler block' scope
Remarks
Execution jumps to a label within a try
/catch
, __try
/__except
, or __try
/__finally
block. The compiler doesn't allow this behavior. For more information, see Exception handling.
Example
The following sample generates C2705:
// C2705.cpp
int main() {
goto trouble;
__try {
trouble: ; // C2705
}
__finally {}
// try the following line instead
// trouble: ;
}
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir