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/45577] [4.6 Regression] Bogus(?) "... type incompatible with source-expr ..." error



------- Comment #6 from dominiq at lps dot ens dot fr  2010-09-08 14:46 -------
> Here is a better patch: ...

Yes! it accepts

program main

type b_obj
  integer,allocatable :: c(:)
  real :: r = 5.
end type b_obj

type (b_obj),allocatable :: b(:)
integer,allocatable :: c(:)
integer :: i,n

n = 3
allocate(b(n),c(n))

end program main 

It passed my tests (it may even fixed another ICE, I am reducing) and regtested
without regression.


-- 


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


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