This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/64762] New: [OpenACC] Bogus "expected '#pragma acc' clause before 'independent'"


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64762

            Bug ID: 64762
           Summary: [OpenACC] Bogus "expected '#pragma acc' clause before
                    'independent'"
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: openacc, rejects-valid
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: tschwinge at gcc dot gnu.org

The following program gives:

foo1.c:4:18: error: expected '#pragma acc' clause before 'independent'
 #pragma acc loop independent
                  ^

An equivalent Fortran program compiles successfully, it works with other
compilers and looking at the standard, it also should be valid.


void foo(void) {
#pragma acc kernels
 {
#pragma acc loop independent
  for (int i=1; i <= 5; ++i)
    {
    }
 }
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]