Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 617 Bytes

compiler-error-c2503.md

File metadata and controls

33 lines (26 loc) · 617 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2503
Compiler Error C2503
11/04/2016
C2503
C2503
da86cc89-fd04-400b-aa8d-a5ffaf7e3918

Compiler Error C2503

'class' : base classes cannot contain zero-sized arrays

A base class or structure contains a zero-sized array. An array in a class must have at least one element.

The following sample generates C2503:

// C2503.cpp// compile with: /cclassA { public:int array []; }; classB : A {}; // C2503classC { public:int array [10]; }; classD : C {};
close