Edit

Share via


Compiler Error C3032

'var' : variable in 'clause' clause cannot have incomplete type 'type'

Types passed to certain clauses must be fully visible to the compiler.

The following sample generates C3032:

// C3032.cpp
// compile with: /openmp /link vcomps.lib
#include "omp.h"

struct Incomplete;
extern struct Incomplete inc;

int main() {
   int i = 9;
   #pragma omp parallel private(inc)   // C3032
      ;

   #pragma omp parallel private(i)     // OK
      ;

}