Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 689 Bytes

compiler-error-c3017.md

File metadata and controls

33 lines (28 loc) · 689 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3017
Compiler Error C3017
11/04/2016
C3017
C3017
12ab2c2a-d0d2-4900-9cbf-39be0af590dd

Compiler Error C3017

termination test in OpenMP 'for' statement has improper form

A for loop in an OpenMP statement must be fully and explicitly specified.

The following sample generates C3017:

// C3017.cpp
// compile with: /openmp
int main()
{
   int i = 0, j = 10;

   #pragma omp parallel
   {
      #pragma omp for
      for (i = 0; i; ++i)   // C3017
      // Try the following line instead:
      // for (i = 0; i < 10; ++i)
         ;
   }
}