> gfortran  -c -O1 bug.f90
bug.f90: In function ‘__colvar_methods_MOD_qparm_colvar’:
bug.f90:13:0: internal compiler error: tree check: expected class ‘constant’,
have ‘binary’ (rdiv_expr) in build_complex, at tree.c:1485
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

> cat bug.f90 
MODULE colvar_methods
  INTEGER, PARAMETER :: dp=KIND(0.0d0)
CONTAINS
  SUBROUTINE qparm_colvar(colvar,cell,subsys,particles,error)
    COMPLEX(KIND=dp)                         :: ylm, ylm_calc, ylm_calc2
    DO ii=1,n_atoms_from
       DO m = 0, l 
          ylm = 0.0_dp
          nbond = 0
          ylm = ylm/nbond
       ENDDO
    ENDDO
  END SUBROUTINE qparm_colvar
END MODULE colvar_methods


-- 
           Summary: [4.5 Regression] expected class ‘constant’, have
                    ‘binary’ (rdiv_expr) in build_complex, at tree.c:1485
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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

Reply via email to