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

Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #6 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Tobias Burnus from comment #5)
> FIXED!
> 
> Thanks for the report and quick feedback!

Tobias,

here's another case where it crashes again:

% cat gfcbug127.f90
module gfcbug127
  implicit none
  type t
     integer :: grid = 0
  end type t
contains
  subroutine read_nml (nnml, s)
    integer, intent(in)  :: nnml
    type(t), intent(out) :: s
    integer              :: grid
    call read_nml_type_2
    s% grid = grid
  contains
    subroutine read_nml_type_2
      namelist /N/ grid
      read (nnml, nml=N)
    end subroutine read_nml_type_2
  end subroutine read_nml
end module gfcbug127

% /opt/gcc/4.9/bin/gfortran -c gfcbug127.f90 -g
gfcbug127.f90: In function 'read_nml_type_2':
gfcbug127.f90:17:0: internal compiler error: in force_decl_die, at
dwarf2out.c:20111
     end subroutine read_nml_type_2
 ^
0x83eb334 force_decl_die
        ../../trunk/gcc/dwarf2out.c:20111
0x83eb87e gen_namelist_decl
        ../../trunk/gcc/dwarf2out.c:20632
0x83e9547 gen_decl_die
        ../../trunk/gcc/dwarf2out.c:20435
0x83fd4b5 decls_for_scope
        ../../trunk/gcc/dwarf2out.c:19969
0x83e31dc gen_subprogram_die
        ../../trunk/gcc/dwarf2out.c:18354
0x83e9b99 gen_decl_die
        ../../trunk/gcc/dwarf2out.c:20336
0x83eb0ce dwarf2out_function_decl
        ../../trunk/gcc/dwarf2out.c:20776
0x8454f92 rest_of_handle_final
        ../../trunk/gcc/final.c:4469
0x8454f92 execute
        ../../trunk/gcc/final.c:4513

Reply via email to