I am not sure whether the code snippet is legal at all, but it should emit an
error, not an ICE.
--snip
module bug
  implicit none
contains
  subroutine  tbug
    integer :: i
    i = len("123")
    call sub(len) 
  end subroutine tbug
end module bug
--snip
>gfortran -c fbug1.f90
fbug1.f90: In Funktion »tbug«:
fbug1.f90:6: interner Compiler-Fehler: in gfc_typenode_for_spec, bei
fortran/trans-types.c:651
Bitte senden Sie einen vollständigen Fehlerbericht auf Englisch ein;
bearbeiten Sie die Quellen zunächst mit einem Präprozessor, wenn es
dienlich ist.
Fehler in der deutschen Übersetzung sind an
[EMAIL PROTECTED] zu melden.

Gehen Sie gemäß den Hinweisen in <URL:http://gcc.gnu.org/bugs.html> vor.
>gfortran --version
GNU Fortran 95 (GCC) 4.2.0 20060603 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.

--snip


-- 
           Summary: ICE using intrinsics as arguments
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: klra67 at freenet 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=27900

Reply via email to