Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 489 Bytes

compiler-error-c2149.md

File metadata and controls

24 lines (20 loc) · 489 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2149
Compiler Error C2149
11/04/2016
C2149
C2149
7a106dab-d79f-41b9-85be-f36e86e4d2ab

Compiler Error C2149

'identifier' : named bit field cannot have zero width

Bit fields can have zero width only if unnamed.

The following sample generates C2149:

// C2149.cpp
// compile with: /c
struct C {
   int i : 0;   // C2149
   int j : 2;   // OK
};