Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 679 Bytes

compiler-error-c2184.md

File metadata and controls

36 lines (30 loc) · 679 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2184
Compiler Error C2184
11/04/2016
C2184
C2184
80fc8bff-7d76-4bde-94d2-01d84bb6824a

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){};
}