------- 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