From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16412 invoked by alias); 24 Oct 2005 17:05:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 15986 invoked by uid 48); 24 Oct 2005 17:05:43 -0000 Date: Mon, 24 Oct 2005 17:05:00 -0000 Subject: [Bug c/24505] New: [gomp] Loop rejected with mixed types in predicate X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu dot org" X-SW-Source: 2005-10/txt/msg03177.txt.bz2 List-Id: I get an error message for the following code snippet: ================================ void foo() { long n = 10; int i; #pragma omp for for (i = 0; i < n; ++i) ; } ================================ bug.c: In function 'foo': bug.c:6: error: invalid controlling predicate This happens with the C and the C++ frontend. I'm not 100 % sure whether this is really a bug or not, but icc for example accepts it. -- Summary: [gomp] Loop rejected with mixed types in predicate Product: gcc Version: unknown Status: UNCONFIRMED Keywords: rejects-valid, openmp Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24505