Between revisions 163966 (working) and 164000 compiling the following test
gives an ICE with -O[23s]

[macbook] f90/bug% cat pr30940.f90
program main
implicit none
character(len=10) :: digit_string = '123456789'
character :: digit_arr(10)
call copy(digit_string, digit_arr)
print '(1x, a1)',digit_arr(1:9)
  subroutine copy(in, out)
    character, dimension(10) :: in, out
    out(1:10) = in(1:10)
  end subroutine copy
end program main
[macbook] f90/bug% gfc -O2 pr30940.f90
pr30940.f90: In function 'MAIN__':
pr30940.f90:1:0: internal compiler error: in build_int_cst_wide, at tree.c:1218

           Summary: [4.6 Regression] ICE; in build_int_cst_wide, at
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10

Reply via email to