[Bug fortran/45577] [4.6 Regression] Bogus(?) "... type incompatible with source-expr ..." error

dominiq at lps dot ens dot fr gcc-bugzilla@gcc.gnu.org
Wed Sep 8 14:47:00 GMT 2010



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



More information about the Gcc-bugs mailing list