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

             Bug #: 56883
           Summary: error openmp parallel for order
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: daffra.clau...@gmail.com


Created attachment 29831
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29831
geeratated by compiler

claudio@mint ~/chtulu $ g++ -fopenmp master.cpp -o master
master.cpp: In function ‘<built-in>’:
master.cpp:179:17: internal compiler error: in expand_gimple_stmt_1, at
cfgexpand.c:2163
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccEQsp0b.out file, please attach this to
your bugreport.


ERROR 

template<class T>
void DimVector ( Vector4d(T) &dc, int x,int y,int z,int w )
{
    register int i,j,k;
    dc.resize(x);
    #pragma omp parallel for ordered shared(i,j,k)
    for ( i = 0; i < x; ++i) 
    {

        dc[i].resize(y);
    #pragma omp parallel for ordered shared(i,j,k)
        for ( j = 0; j < y; ++j) 
        {
            dc[i][j].resize(z);
        #pragma omp parallel for ordered shared(i,j,k)
            for (  k = 0; k < z; ++k) 
            {
                dc[i][j][k].resize(w);
            }
        }
    }
}

Reply via email to