------- Additional Comments From paulthomas2 at wanadoo dot fr  2005-07-09 
13:14 -------

> The real bug is in gfc_conv_expr_descriptor, as proven by the following
> testcase, which doesn't exercise the codepath you're modifying, but the parts
> Paul's patch makes us evade:

I think that your pointer example is another bug.  Whether it should be
considered to be in gfc_trans_pointer_assignment itself or in
gfc_conv_expr_descriptor should be thought through.  It seems to me that fixing
the latter would open the same can of worms that we have discussed for
gfc_trans_assignment.  This time, I am not sure that there is solution, except
for the third.  Using temporaries will not work, since the temporary would have
to be updated each time the target value changed. Modifying the stride will not
work for the same reasons as for a non-pointer assignment.  If size is used, can
we be sure that the rest of the compiler will pick it up?


-- 


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

Reply via email to