[Patch, fortran] PR39519 - [4.4 Regression] bad assignment to type with allocatable component
Paul Richard Thomas
paul.richard.thomas@gmail.com
Sun Mar 22 13:01:00 GMT 2009
This one is embarrassing but the fix is obvious and safe. The
detection of pointer or allocatable components was mutually excluding
that the derived type could gain the attribute that it have the other.
Unfortunately, in spite of the identification of this as being a
regression, it was built into Erik and my original patch:-(
http://gcc.gnu.org/viewcvs/trunk/gcc/fortran/parse.c?r1=117558&r2=117557&pathrev=11755
What shall I do? It is a major fault and, as I say, the patch is
safe. However, it is not a regression, in fact.
Bootstraps and regtests on FC9/x86_64
Paul
2009-03-22 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38765
* parse.c.c (parse_derived): Do not break on finding pointer or
allocatable components.
2009-03-22 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38765
* gfortran.dg/alloc_comp_assign_9.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 1341 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090322/5f93a1d3/attachment.bin>
More information about the Fortran
mailing list