Between revisions 163718 (working) and 163913, the following code (and friends) gives a possibly bogus error:
[macbook] f90/bug% cat allocate_type_red.f90 program main type b_obj integer,allocatable :: c(:) 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 [macbook] f90/bug% gfc allocate_type_red.f90 allocate_type_red.f90:12.14: allocate(b(n),c(n)) 1 allocate_type_red.f90:3.10: type b_obj 2 Error: Type of entity at (1) is type incompatible with source-expr at (2) I suspect revision 163862. -- Summary: [4.6 Regression] Bogus(?) "... type incompatible with source-expr ..." error Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dominiq at lps dot ens dot fr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45577