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

            Bug ID: 57307
           Summary: ICE with sourced allocation with array constructor
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vladimir.fuka at gmail dot com

integer,allocatable :: a(:)
      integer :: e

        allocate(a,source=[e])
end


produces:

gfortran -c ice8.f90
f951: internal compiler error: NeoprĂĄvnÄĂ˝ pĹĂ­stup do pamÄi (SIGSEGV)
0x8ba79f crash_signal
        ../../gcc-4.8-20130509/gcc/toplev.c:332
0x5bab06 conformable_arrays
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:7077
0x5bab06 resolve_allocate_expr
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:7247
0x5bab06 resolve_allocate_deallocate
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:7670
0x5bcf56 resolve_code
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:10335
0x5bec4e resolve_codes
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:14975
0x5afb22 gfc_resolve
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:15003
0x5a4662 resolve_all_program_units
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4406
0x5a4662 gfc_parse_file()
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4673
0x5dfd15 gfc_be_parse_file
        ../../gcc-4.8-20130509/gcc/fortran/f95-lang.c:189
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
lada@meop37:~/f/testy/errors>
lada@meop37:~/f/testy/errors>
lada@meop37:~/f/testy/errors> gfortran -c ice8.f90
f951: internal compiler error: NeoprĂĄvnÄĂ˝ pĹĂ­stup do pamÄi (SIGSEGV)
0x8ba79f crash_signal
        ../../gcc-4.8-20130509/gcc/toplev.c:332
0x5bab06 conformable_arrays
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:7077
0x5bab06 resolve_allocate_expr
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:7247
0x5bab06 resolve_allocate_deallocate
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:7670
0x5bcf56 resolve_code
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:10335
0x5bec4e resolve_codes
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:14975
0x5afb22 gfc_resolve
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:15003
0x5a4662 resolve_all_program_units
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4406
0x5a4662 gfc_parse_file()
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4673
0x5dfd15 gfc_be_parse_file
        ../../gcc-4.8-20130509/gcc/fortran/f95-lang.c:189
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to