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

             Bug #: 51279
           Summary: xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1
                    -funroll-loops
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: howa...@nitro.med.uc.edu


Created attachment 25893
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25893
preprocessed source file for nmrPot/solnScatPot.cc

nmrPot/solnScatPot.cc from xplor-nih 2.27 ICEs the gcc trunk when compiled with
-O1 -funroll-loops. The failure appears on x86_64-apple-darwin11 as...

g++-fsf-4.7 -c solnScatPot.ii -O1 -funroll-loops -fpermissive -g
-DX_MMAP_FLAGS=0 -DFORTRAN_INIT -fno-common -DDARWIN -D_REENTRANT -DNDEBUG
-DCPLUSPLUS -DUSE_CDS_NAMESPACE
In file included from solnScatPot.cc:1791:0:
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc: In instantiation of
‘CDSVector<T, OFFSET, ALLOC>& CDSVector<T, offset, ALLOC>::operator=(const
CDS::Vector<VECTOR>&) [with VEC = CDSVector<double>; T = double; int offset_ =
0; ALLOC = EnsembleSimulation::SharedAlloc]’:
solnScatPot.cc:1126:64:   required from here
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: warning: ‘resize’ was
not declared in this scope, and no declarations were found by
argument-dependent lookup at the point of instantiation [-fpermissive]
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: note: declarations in
dependent base ‘CDSVectorBase<double, EnsembleSimulation::SharedAlloc>’ are not
found by unqualified lookup
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: note: use
‘this->resize’ instead
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc: In instantiation of
‘CDSVector<T, OFFSET, ALLOC>& CDSVector<T, offset, ALLOC>::operator=(const
CDS::Vector<VECTOR>&) [with VEC = CDSVector<double, 0,
EnsembleSimulation::SharedAlloc>; T = double; int offset_ = 0; ALLOC =
CDS::DefaultAlloc]’:
solnScatPot.cc:1505:56:   required from here
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: warning: ‘resize’ was
not declared in this scope, and no declarations were found by
argument-dependent lookup at the point of instantiation [-fpermissive]
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: note: declarations in
dependent base ‘CDSVectorBase<double, CDS::DefaultAlloc>’ are not found by
unqualified lookup
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: note: use
‘this->resize’ instead
solnScatPot.cc: In member function ‘void SolnScatPot::calcDeriv_uniform(const
CDSVector<Vec3>&, const CDSMatrix<double>&, CDSVector<Vec3>&)’:
solnScatPot.cc:889:1: internal compiler error: in apply_opt_in_copies, at
loop-unroll.c:2283
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The issue doesn't occur with -O0  -funroll-loops

Reply via email to