At revision 146606 the following code

module vector_calculus
  intrinsic :: dot_product, sqrt

contains

  function len(r)
    real, dimension(:), intent(in) :: r
    real :: len
    len = sqrt(dot_product(r,r))
  end function len

end module vector_calculus
end

gives

pr36192_mod_red.f90:12.26:

end module vector_calculus
                          1
Internal Error at (1):
write_symbol(): bad module symbol 'x'

This code has been extracted from a larger one that did not give this error at
revision 146282.
I suspect revision 146554.


-- 
           Summary: Internal Error with INTRINSIC in module
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr


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

Reply via email to