I get a ICE in g++ for the following code when compiled with -fopenmp and -O2:

#include <string>

int foo()
{
        int x1;
#pragma omp parallel
        {
                for (int i = 0; i < 5; ++i) {
                        std::string xxx;
                }
        }
        return 0;
}

Note that this is not exactly bug 26823, since the function name where the ICE
occurs is not printed. I tried to replace std::string with something else, but
then the ICE disappears. This is with svn from yesterday: g++-4.2 (GCC) 4.2.0
20060328 (experimental)


-- 
           Summary: ICE with -fopenmp and -O2
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Georg dot Baum at post dot rwth-aachen dot de
 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=26913

Reply via email to