This is the mail archive of the gcc-patches@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]

Re: [Patch, Fortran] PR41629: [OOP] gimplification error on valid code


Janus,

I have applied your patch in http://gcc.gnu.org/ml/fortran/2009-10/msg00116.html
It fixes the PR along with pr41618 and pr41608:

[ibook-dhum] f90/bug% cat pr41608.f90
class(t1), pointer :: c  ! missing TYPE decl
  select type (c)
  type is (t1)
  end select
end
[ibook-dhum] f90/bug% gfc pr41608.f90
pr41608.f90:3.14:

  type is (t1)
              1
Error: The derived type 'tmp$t1' at (1) is of type 't1', which has not been defined

although I find the message a little bit confusing. Why not
"Error: The derived type 't1' at (1) has not been defined"?

Also the first test of PR41586 gives an ICE:

[ibook-dhum] f90/bug% cat pr41586.f90
type t0
end type t0
type t
  integer :: i
  class(t0), allocatable :: foo
end type t
type(t) :: m
allocate(t0 :: m%foo)
m%i = 5
end
[ibook-dhum] f90/bug% gfc pr41586.f90
pr41586.f90: In function 'MAIN__':
pr41586.f90:1:0: internal compiler error: in gfc_conv_structure, at fortran/trans-expr.c:4126

I'll regtest tonight. Thanks for the patch.

Dominique


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