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++/43545] New: OpenMP ICE (segfault) in conditional break


The following test case causes g++ 4.4.0 to crash.

$ g++ --version
g++ (GCC) 4.4.0 20090514 (Red Hat 4.4.0-6)

#include <vector>

int main()
{
        std::vector<int> m;
        std::vector<int>::const_iterator it = m.begin();
        #pragma omp parallel
        for (;;) {
                if (it == m.end())
                        break;
        }
        return 0;
}


-- 
           Summary: OpenMP ICE (segfault) in conditional break
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sjackman at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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