Compiler Error C2184
'type' : illegal type for __except expression, must be an integral
A type was used in an __except statement, but the type is not allowed.
The following sample generates C2184:
// C2184.cpp
void f() {
int * p;
__try{}
__except(p){}; // C2184
}
Possible resolution:
// C2184b.cpp
// compile with: /c
void f() {
int i = 0;
__try{}
__except(i){};
}
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