C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
C2093
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2093
 
     cannot use address of automatic variable as static initializer
 
     The program tried to use the address of an automatic variable
     in the initializer of a static item, as in the following example:
 
          func()
          {
              int i;
              static int *ip=&i;    // error
          }
                                    -♦-