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

* [Bug c/24505] [gomp] Loop rejected with mixed types in predicate
  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 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-10-24 17:11 UTC (permalink / raw)
  To: gcc-bugs



-- 

rth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-24 17:11:35
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24505


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

* [Bug c/24505] [gomp] Loop rejected with mixed types in predicate
  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
  2 siblings, 0 replies; 4+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2005-10-31 12:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from aldyh at gcc dot gnu dot org  2005-10-31 12:43 -------
Subject: Bug 24505

Author: aldyh
Date: Mon Oct 31 12:43:44 2005
New Revision: 106269

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106269
Log:
        PR gomp/24505
        * c-omp.c (c_finish_omp_for): Canonicalize condition.
        * testsuite/gcc.dg/gomp/for-15.c: New.
        * testsuite/g++.dg/gomp/for-17.C: New.

Added:
    branches/gomp-20050608-branch/gcc/testsuite/g++.dg/gomp/for-17.C
    branches/gomp-20050608-branch/gcc/testsuite/gcc.dg/gomp/for-15.c
Modified:
    branches/gomp-20050608-branch/gcc/ChangeLog.gomp
    branches/gomp-20050608-branch/gcc/c-omp.c
    branches/gomp-20050608-branch/gcc/testsuite/ChangeLog.gomp


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24505


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

* [Bug c/24505] [gomp] Loop rejected with mixed types in predicate
  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
  2 siblings, 0 replies; 4+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2005-10-31 12:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from aldyh at gcc dot gnu dot org  2005-10-31 12:52 -------
http://gcc.gnu.org/ml/gcc-patches/2005-10/msg01718.html


-- 

aldyh at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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).