Edit

Share via


Compiler Error C2033

'identifier': bit field cannot have indirection

Remarks

Bit fields can't be declared as a pointer, reference, or array. For more information, see C++ Bit Fields.

Example

The following example generates C2033:

// C2033.cpp
// compile with: /c

struct S
{
    int* ptr : 1;     // C2033
    int arr[3] : 1;   // C2033
};

See also

Compiler Error C2531