[Patch, fortran] PR29422 and PR29428 - allocatable component wrinkles

Richard E Maine Richard.Maine@nasa.gov
Wed Oct 11 22:08:00 GMT 2006


On Oct 11, 2006, at 2:03 PM, Dominique Dhumieres wrote:

> "this should be equivalent to x%a = y (for an unallocated x%a)"
>
> Do you mean that "x = mytype(y)" could be replaced by
> "x%a = y"?

I assume so. That's what it sounds like to me. I also happen to agree  
that it should be equivalent. (See my post on comp.lang.fortran; I  
had missed the earlier parts of the discussion here, since there were  
about 200 messages in the list when I looked at it this morning for  
the first time since last Thursday).

>   If I do so, ifort aborts and gfortran and g95
> seg fault.

Well, then they have a bug. That's completely independent of the  
question of what the bounds should be. There isn't even any  
"interesting" question about whether it is valid code (given either  
f2003 or the allocatable TR).

-- 
Richard Maine                |  Good judgment comes from experience;
Richard.Maine@nasa.gov       |  experience comes from bad judgment.
                             |        -- Mark Twain



More information about the Fortran mailing list