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/42888] [4.5 Regression] ICE in fold_convert_loc, at fold-const.c:2670



------- Comment #15 from janus at gcc dot gnu dot org  2010-01-29 19:18 -------
(In reply to comment #14)
> Note: There is another call to 'gfc_default_initializer' in
> 'gfc_trans_allocate', which should be moved to resolve.c too, I guess.

Here is a small test case (very similar to comment #0, but with CLASS) which
confirms this:


  type t
     integer :: X = -999.0   ! Real initializer!
  end type t

  class(t), allocatable :: x
  allocate (x)     ! works
  allocate (t::x)  ! ICE

end


-- 


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


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