C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C2626
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2626
 
     anonymous union defines protected/private member 'identifier'
 
     The specified member was declared with protected or private
     access.
 
     A member of an anonymous union must have public access.
 
     The following are an examples of this error:
 
          void main()
          {
             union
             {
             public:
                int i;     // OK, i is public
             protected:
                int j;     // error, j is protected
             private:
                int k;     // error, k is private
             };
          }
                                    -♦-