This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/47455] New: internal compiler error: in fold_convert_loc, at fold-const.c: 2028


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

           Summary: internal compiler error: in fold_convert_loc, at
                    fold-const.c: 2028
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: thenlich@users.sourceforge.net


The following example results in an internal compiler error.

Version: gcc version 4.6.0 20110122 (experimental) (GCC)
Platform: i686-pc-mingw32
Expected result: Produce proper source diagnostics/error message for the error.

module class_t
    type :: tx
        integer, dimension(:), allocatable :: i
    end type tx
    type :: t
        type(tx), pointer :: x
    contains
        procedure :: calc
        procedure :: find_x
    end type t
contains
    subroutine calc(this)
        class(t), target :: this
        this%x = this%find_x()
    end subroutine calc
    function find_x(this)
        class(t), intent(in) :: this
        type(tx), pointer :: find_x
        find_x => null()
    end function find_x
end module class_t

$ gfortran -c class_t.f90
class_t.f90: In function 'calc':
class_t.f90:14:0: internal compiler error: in fold_convert_loc, at
fold-const.c:2028
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]