description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C2184 |
Compiler Error C2184 |
11/04/2016 |
|
|
80fc8bff-7d76-4bde-94d2-01d84bb6824a |
'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){};
}