This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41478] Corrupted memory using PACK for derived-types with allocated components
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2010 13:06:03 -0000
- Subject: [Bug fortran/41478] Corrupted memory using PACK for derived-types with allocated components
- References: <bug-41478-15192@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #22 from burnus at gcc dot gnu dot org 2010-01-11 13:06 -------
(In reply to comment #20)
> The patch in comment #19, passes all my tests, but (otherwise you'ld be
> disappointed;-) compiling the reduced test in comment #8 gives a "Segmentation
> fault"
[...]
> ../../work/gcc/fortran/trans-array.c:6014
> 6014 tmp = gfc_duplicate_allocatable(dcmp, comp, ctype,
> c->as->rank);
Because of that line: Dominique, do you have the draft patch for PR 42647
installed? If so, it might be the reason for the problem. Just to add another
possibility for the failure.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41478