public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/24505]  New: [gomp] Loop rejected with mixed types in predicate
@ 2005-10-24 17:05 reichelt at gcc dot gnu dot org
  2005-10-24 17:11 ` [Bug c/24505] " rth at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-10-24 17:05 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-31 12:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-24 17:05 [Bug c/24505] New: [gomp] Loop rejected with mixed types in predicate reichelt at gcc dot gnu dot org
2005-10-24 17:11 ` [Bug c/24505] " rth at gcc dot gnu dot org
2005-10-31 12:43 ` aldyh at gcc dot gnu dot org
2005-10-31 12:52 ` aldyh at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).