Compiler Error C3623
'variable': bit fields are not supported in managed or WinRT types
The use of bit fields is not permitted on variables in a managed or WinRT class.
The following sample generates C3623:
// C3623.cpp
// compile with: /clr
using namespace System;
ref class CMyClass {
public:
int i : 1; // C3623
};
int main() {
CMyClass^ pMyClass = gcnew CMyClass();
pMyClass->i = 3;
Console::Out->WriteLine(pMyClass->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