------- Comment #2 from fxcoudert at gcc dot gnu dot org  2007-10-05 11:15 
-------
Confirmed. Reduced testcase:

$ cat a.f90
module test
contains
  subroutine func_1(u,n)
    integer :: n, u(n(1))
  end subroutine
end module test
$ gfortran a.f90
f951: internal compiler error: Segmentation fault

This is a module writing problem, as confirmed by the backtrace:

#0  0x00000000004448d6 in mio_expr (ep=0x0)
    at ../../../trunk/gcc/fortran/module.c:2794
#1  0x00000000004454bc in mio_array_spec (asp=<value optimized out>)
    at ../../../trunk/gcc/fortran/module.c:1934
#2  0x0000000000445a89 in mio_symbol (sym=0xf592b0)
    at ../../../trunk/gcc/fortran/module.c:3067
#3  0x00000000004461f9 in write_symbol (n=5, sym=0xf592b0)
    at ../../../trunk/gcc/fortran/module.c:3902
#4  0x000000000044638d in write_symbol1 (p=0xf5ae90)
    at ../../../trunk/gcc/fortran/module.c:3969
#5  0x0000000000446355 in write_symbol1 (p=0xf5a110)
    at ../../../trunk/gcc/fortran/module.c:3962
#6  0x0000000000446332 in write_symbol1 (p=0xf5afc0)
    at ../../../trunk/gcc/fortran/module.c:3960
#7  0x0000000000447e71 in gfc_dump_module (name=<value optimized out>,
    dump_flag=1) at ../../../trunk/gcc/fortran/module.c:4106


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
           Severity|minor                       |normal
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|x86_64-unknown-linux        |paulthomas
   GCC host triplet|x86_64-unknown-linux        |
 GCC target triplet|x86_64-unknown-linux        |
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2007-10-05 11:15:04
               date|                            |


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

Reply via email to