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 middle-end/36506] New: [4.3/4.4 Regression] Broken #pragma omp sections reduction (+:x)


int
main (void)
{
  int sum = 0;
#pragma omp parallel
  #pragma omp sections reduction (+:sum)
    {
    #pragma omp section
      sum += 2;
    #pragma omp section
      sum += 2;
    #pragma omp section
      sum += 2;
    }
  return sum != 6;
}

ICEs with -fopenmp since
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127121


-- 
           Summary: [4.3/4.4 Regression] Broken #pragma omp sections
                    reduction (+:x)
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Keywords: openmp
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: jakub at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


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