This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55072] [4.6/4.7/4.8 Regression] Missing internal_pack leads to wrong code with derived type
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 15 Dec 2012 21:06:11 +0000
- Subject: [Bug fortran/55072] [4.6/4.7/4.8 Regression] Missing internal_pack leads to wrong code with derived type
- Auto-submitted: auto-generated
- References: <bug-55072-4@http.gcc.gnu.org/bugzilla/>
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) ...