Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 599 Bytes

compiler-error-c2619.md

File metadata and controls

23 lines (19 loc) · 599 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2619
Compiler Error C2619
11/04/2016
C2619
C2619
c826f8ab-d66a-4b79-a0b2-93b0af8c41ac

Compiler Error C2619

'identifier': a static data member is not allowed in an anonymous struct or union

A member of an anonymous struct or union is declared static.

The following sample generates C2619, and demonstrates how to fix it by removing the static keyword.

// C2619.cppintmain() { union { staticint j; }; // C2619union { int j; }; // OK }
close