[Patch, Fortran, F08] PR 45290: pointer initialization

Janus Weil janus@gcc.gnu.org
Tue Feb 8 22:58:00 GMT 2011


>> The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?
>
> OK and thanks for the patch.

Thanks, Tobias. Committed as r169948.


> Is part (2) of comment 5 actually fixed? ("Making global variables in a
> program SAVE_IMPLICIT.") Or rather: Is there a usage case where the user can
> see that this is not the case? I don't think there is ...

I don't think it has been fixed, and I'm not sure if it actually would
make a difference. I'll note this as a possible to-do item in the PR.



> PS: Unrelated to the current patch, but I do not like the error message for
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45290#c5 ("attempted assignment
> of UNKNOWN to INTEGER(4)").

Oops. I hadn't even noticed the typo in this test case. While the
error message is not *too* bad, it would be better to have the same
one as in:

 implicit none
 integer, target, save  :: t1
 integer, pointer :: p1
 p1 => t
end



 p1 => t
        1
Error: Symbol 't' at (1) has no IMPLICIT type


Another minor to-do item ...

Cheers,
Janus



More information about the Fortran mailing list