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/55072] [4.6/4.7/4.8 Regression] Missing internal_pack leads to wrong code with derived type


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

--- Comment #16 from janus at gcc dot gnu.org 2012-12-15 21:06:11 UTC ---
(In reply to comment #15)
> 
> type(t3), pointer     :: array_t3_ptr(:,:)
> 
> call sub_array_assumed (array_t3_ptr)
> 
> contains
> 
>   subroutine sub_array_assumed (arg3)
>      type(*), target :: arg3(*)
>   end subroutine
> 
> end
> 
> [...]
> 
> Question is: Is the packing needed here? I would guess that it isn't.

Of course I might be wrong here. After all, array_t3_ptr is a pointer, so it's
not guaranteed to be contiguous, right?

If the packing is indeed required in this place, we just need to fix the test
case (assumed_type_2.f90) ...


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