Compiler Error C2045
'identifier' : label redefined
The label appears before multiple statements in the same function.
The following sample generates C2045:
// C2045.cpp
int main() {
label: {
}
goto label;
label: {} // C2045
}
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