Re: Are f.p. manipulation functions only used in initialization?



On Apr 27, 4:55 am, "James Van Buskirk" <not_va...@xxxxxxxxxxx> wrote:
"James Van Buskirk" <not_va...@xxxxxxxxxxx> wrote in messagenews:QdCdnaPuP40qNo7VnZ2dnUVZ_hWdnZ2d@xxxxxxxxxxxxxx
"-frepack-arrays

It is not mentioned here that this is one of the options that makes
the program behave contrary to the standard:

Confirmed. The problem is that in the function "point" a temporary
array is created to contain the repacked data of the dummy argument
"x". Thus, the pointer points to the temporary array and not to the
dummy array.

Solution: Do not repack dummy arguments with the TARGET attribute. I
filled now http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36059

Thanks for the bug report. (Maybe I should re-read at some point the
gfortran documentation, there are options I have never heard of.)

Tobias
.



Relevant Pages

  • Re: Display Array
    ... 'noentry', ... Informix will try to go to that field and provided its the last field ... > Subject: Re: Display Array ... > The normal way in Old 4GL was to have a dummy 'noenty' column at the ...
    (comp.databases.informix)
  • Re: Assumed-size arrays and intent(out)
    ... Our coding style standard says that an intent ... attribute must be provided for every dummy argument in new code. ... "undefining" parts of the Residuals array other than ... size dummy and passing an array element, you get sequence association, ...
    (comp.lang.fortran)
  • Re: how to use 1D array as a multidimensional array
    ... "If the dummy argument has the TARGET attribute and is an explicit-shape ... an assumed-size array, and the corresponding actual argument has the TARGET ... When execution of the procedure completes, the pointer association ... Passing a reference to an array descriptor (the reference part becomes ...
    (comp.lang.fortran)
  • Re: Pointers and Modules
    ... > confused about target dummy arguments. ... TARGET attribute but is not an array section with a vector subscript ...
    (comp.lang.fortran)
  • Re: Calling C from fortran
    ... An assumed shape array is declared with a syntax that looks like that of EPS above, but in the declaration of the dummy argument. ... this just indicates passing an array slice. ... There is no Fortran dummy argument declaration, so I tried to state some of the possible solution, ...
    (comp.lang.fortran)